草庐IT

Actionsheet

全部标签

ios - 在 IOS 8 的 UIActionSheet 中添加 UIPickerView 不起作用

我正在将UIPickerView添加到UIActionsheet但它在ios7中完美运行但在ios8中无法运行.请帮我解决这个问题。我附上了截图。谢谢我为此使用了以下代码。UIActionSheet*actionSheet;NSString*pickerType;-(void)createActionSheet{if(actionSheet==nil){//setupactionsheettocontaintheUIPickeractionSheet=[[UIActionSheetalloc]initWithTitle:@"Pleaseselect"delegate:selfcance

ios - ActionSheet 源 View BarButtonItem

我在导航栏中有一个栏按钮项,当按下它时,将显示一个UIAlertController,其样式为.ActionSheet。在iPhone中,它以我想要的方式出现。对于iPad我知道我需要添加//ForiPad,setthepopoverboundsvarpopOver=optionMenu.popoverPresentationControllerpopOver?.sourceView=buttonasUIViewpopOver?.sourceRect=(buttonasUIView).boundspopOver?.permittedArrowDirections=UIPopoverAr

ios - ActionSheet 源 View BarButtonItem

我在导航栏中有一个栏按钮项,当按下它时,将显示一个UIAlertController,其样式为.ActionSheet。在iPhone中,它以我想要的方式出现。对于iPad我知道我需要添加//ForiPad,setthepopoverboundsvarpopOver=optionMenu.popoverPresentationControllerpopOver?.sourceView=buttonasUIViewpopOver?.sourceRect=(buttonasUIView).boundspopOver?.permittedArrowDirections=UIPopoverAr

ios - 使用 UIAlertControllerStyle.ActionSheet 在 UIAlertController 中取消按钮

我想在我的UIAlert中添加一个单独的取消按钮。我知道如何用UIActionSheet做到这一点,但它也应该可以用UIAlert实现,对吧?varsheet:UIActionSheet=UIActionSheet();lettitle:String="...";sheet.title=title;sheet.delegate=self;sheet.addButtonWithTitle("Cancel");sheet.addButtonWithTitle("...")sheet.cancelButtonIndex=0;sheet.showInView(self.view);这将有一个.

ios - 使用 UIAlertControllerStyle.ActionSheet 在 UIAlertController 中取消按钮

我想在我的UIAlert中添加一个单独的取消按钮。我知道如何用UIActionSheet做到这一点,但它也应该可以用UIAlert实现,对吧?varsheet:UIActionSheet=UIActionSheet();lettitle:String="...";sheet.title=title;sheet.delegate=self;sheet.addButtonWithTitle("Cancel");sheet.addButtonWithTitle("...")sheet.cancelButtonIndex=0;sheet.showInView(self.view);这将有一个.

ios - 弹出不指向按钮

我有一个与iPhone和iPad布局兼容的应用程序。对于iPhone布局,我为iPad创建了ActionSheet和Popover。问题是弹出箭头没有指向我单击的按钮。下面是我的代码....letactionSheet=UIAlertController(title:"Chooseanoption",message:"Message",preferredStyle:.ActionSheet)...ifUIDevice.currentDevice().userInterfaceIdiom==UIUserInterfaceIdiom.Pad{//foriPadactionSheet.pop

ios - 弹出不指向按钮

我有一个与iPhone和iPad布局兼容的应用程序。对于iPhone布局,我为iPad创建了ActionSheet和Popover。问题是弹出箭头没有指向我单击的按钮。下面是我的代码....letactionSheet=UIAlertController(title:"Chooseanoption",message:"Message",preferredStyle:.ActionSheet)...ifUIDevice.currentDevice().userInterfaceIdiom==UIUserInterfaceIdiom.Pad{//foriPadactionSheet.pop

ios - 在 iOS 的 UITabbarcontroller 中添加 Actionsheet

我在UIViewController中创建了UITabbar。然后我向它添加了一个UIActionSheet但是当操作表出现时,当单击“取消”按钮的顶部时,它可以工作,但是当我单击“取消”的底部时,没有任何响应。我使用此代码添加操作表:actionSheetDelete=[[UIActionSheetalloc]initWithTitle:@"Doyouwanttocontinue?"delegate:selfcancelButtonTitle:@"Cancel"destructiveButtonTitle:@"DeleteItem(s)"otherButtonTitles:nil];

ios - ActionSheet 无法在 iPad 上运行

我在我的应用程序中使用ActionSheet。在我的iPhone上可以,但在iPad模拟器上不行。这是我的代码:@IBActionfuncdialog(sender:AnyObject){letoptionMenu=UIAlertController(title:nil,message:"ChooseOption",preferredStyle:.ActionSheet)letdeleteAction=UIAlertAction(title:"Delete",style:.Default,handler:{(alert:UIAlertAction!)->Voidinprintln("F

ios - 当出现 actionSheet (AlertController) 时,如何修复 PopoverViewController 的边界?

当ViewController通过UIPopoverPresentationController以iOS8的方式呈现actionSheet(AlertController)时,ViewController将其边界缩小到actionSheet的大小。我试图做的是在弹出窗口上显示actionSheet,但我以iOS8的方式进行,我遇到了这种奇怪的情况。这就是我遇到这种情况的原因当按下barButtonItem时,它通过UIPopoverPresentationController弹出ViewController。(如图1)当按下ViewController上的按钮时,它会显示一个actio