我目前正在为我的通用应用程序使用UIActionsheet,效果很好,但我希望iPad动作单类似于iPhone动作单。
iPad上是否有类似于iPhone操作表的内容?或者,有没有一种方法可以在没有方向箭头的情况下重新定位iPad操作表和and概述?
谢谢
编辑:下面是我实现和添加actionsheet的代码
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];发布于 2012-12-04 05:03:54
在iPad上,操作表会自动显示在弹出窗口中。这是无法更改的。您也不能删除该数组。UIActionSheet接口不支持您想要的。
您唯一的解决方案是一个自定义实现,它可以执行您想要的操作。
发布于 2012-12-04 03:45:12
实际上你可以从ipad的UIPopover中移除箭头。
[self.popoverController presentPopoverFromBarButtonItem:anItem
permittedArrowDirections:0
animated:YES];或
[self.popoverViewController presentPopoverFromRect:rect
inView:self.view permittedArrowDirections:0 animated:YES];零表示无方向。
https://stackoverflow.com/questions/13690413
复制相似问题