我目前正在为我的通用应用程序使用 UIActionsheet,效果很好,但我希望 iPad 操作表类似于 iPhone 操作表。
iPad 上有类似 iPhone 操作表的东西吗?或者,有没有办法在没有方向箭头的情况下重新定位 iPad 操作表和弹出窗口?
谢谢
编辑:这是我实现和添加操作表的代码
adActionSheet = [[UIActionSheet alloc]initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Go to Site", @"Some other button", nil];
[adActionSheet showFromRect:CGRectMake(300, 1150, 200, 200) inView:self.view animated:YES];
最佳答案
在 iPad 上,操作表会自动显示在弹出窗口中。这是无法改变的。您也无法删除该数组。 UIActionSheet
API 不支持您想要的功能。
您唯一的解决方案是执行您想要的操作的自定义实现。
关于iphone - UIActionsheet Ipad/Iphone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13690413/