草庐IT

Actionsheet

全部标签

ios - 为什么 UIActionSheet 在呈现时是透明的?

我的UIActionSheet在显示时是透明的。我该如何改变这个?这是问题的屏幕截图:代码:-(IBAction)btnTakePicture_Clicked:(id)sender{UIActionSheet*actionSheet=[[UIActionSheetalloc]initWithTitle:@"SelectImagefrom..."delegate:selfcancelButtonTitle:@"Cancel"destructiveButtonTitle:nilotherButtonTitles:@"Camera",@"ImageGallary",nil];actionSh

iphone - Landscape 中的 UIActionSheet 的 buttonIndicies 不正确

我有一个操作表让我在iPhone的横向模式上感到悲伤。一切都显示得很好,但在Landscape中,第一个真正的按钮与取消按钮具有相同的索引,因此逻辑不起作用。我已经尝试使用initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:创建actionSheet,但那是一样的,我当前的代码如下;UIActionSheet*actionMenu=[[UIActionSheetalloc]init];actionMenu.delegate=self;actionMenu.title=fold

iphone - 使用 UIImageWriteToSavedPhotosAlbum 保存图像时无法识别的选择器错误

UILongPressGestureRecognizer被添加到我的imageView中,带有操作handleLongPressOnPhotos。最相关的代码如下:-(IBAction)handleLongPressOnPhotos:(UIImageView*)sender{self.imageWillBeSaved=sender;UIActionSheet*actionSheet=[[UIActionSheetalloc]initWithTitle:nildelegate:selfcancelButtonTitle:@"Cancel"destructiveButtonTitle:@"

ios - iPad 上的操作表

此代码在iPhone上运行良好,但在iPad上操作表显示在屏幕中间。不在触发按钮所在的角落。也没有显示取消按钮。此外,该应用仅处于横向模式。相机触发按钮位于屏幕的右上角。mediaPicker=[[UIImagePickerControlleralloc]init];mediaPicker.allowsEditing=YES;if([UIImagePickerControllerisSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]){UIActionSheet*actionSheet=[[UIActionSheet

iphone - 从 TabBar 调用 ActionSheet

我有一个带有4个按钮(主页、访问、共享、更多)的标签栏。我希望我的选项卡栏中的“共享”按钮调用一个操作表,该操作表具有适当的按钮来选择我希望用户能够分发指向应用程序的链接(Facebook、Twitter、电子邮件等)的特定channel。我可以使用Storyboard来执行此操作,但我必须创建一个唯一的(空白)ViewController,该ViewController链接到选项卡栏中的“共享”按钮。我将以下代码放在viewDidAppear方法中,以便在选择“共享”按钮时显示操作表:intselectedTab=self.tabBarController.selectedIndex

ios - NativeControls 或 ActionSheet Cordova 插件文档?

我看过很多关于在NativeControls插件中使用TabBar或ToolBar的文档,但是关于使用ActionSheet的文档几乎为零。我遵循了ActionSheet插件的自述文件:https://github.com/phonegap/phonegap-plugins/tree/master/iOS/ActionSheet我已经让它工作了,但是示例创建的按钮不执行任何操作。我想创建一个具有“Tweet”按钮、“在Facebook上共享”按钮、“电子邮件”按钮和取消的ActionSheet,并且显然会触发Javascript以访问Twitter和Facebook-Connect功能

ios - 将 UIActivityIndi​​catorView 添加到 UIActionSheet

我正在尝试以这种方式将UIActivityIndi​​catorView添加到UIActionsSheet:UIActionSheet*actionSheet=[[UIActionSheetalloc]initWithTitle:nildelegate:sharedInstancecancelButtonTitle:nildestructiveButtonTitle:nilotherButtonTitles:nil];for(NSMutableDictionary*dictinmoreStructure){NSString*value=[dictvalueForKey:TITLE_PA

ios - UIActionSheet 未在 iOS 8 中显示

我可以在iOS7中显示actionSheet,但不能在iOS8环境中显示。有什么办法可以追溯吗?UIActionSheet*_actionSheet=[[UIActionSheetalloc]initWithTitle:@"Account"delegate:selfcancelButtonTitle:@"Close"destructiveButtonTitle:@"LogOut"otherButtonTitles:@"ViewAccount",nil];[_actionSheetshowInView:appDel.window]; 最佳答案

ios - UIActionSheet showFromRect 自动旋转

我正在展示一个像这样的UIActionSheet:-(void)accessoryPressed:(id)sender{//OmittedunnecessaryobjectsUIActionSheet*actionSheet=[[UIActionSheetalloc]initWithTitle:titleStringdelegate:selfcancelButtonTitle:@"Cancel"destructiveButtonTitle:@"Delete"otherButtonTitles:@"Upload",nil];//actionSheet.autoresizingMask=U

ios - 如何将选定的 UIActionSheet 按钮的标题放入标签中?

我有一个带有一些选项的按钮。-(IBAction)monstrarActionSheet:(id)sender{UIActionSheet*action=[[UIActionSheetalloc]initWithTitle:@"Titulo"delegate:selfcancelButtonTitle:@"Mejorno"destructiveButtonTitle:@"Quemiedo"otherButtonTitles:@"Otroboton1",@"Otroboton2",nil];[actionshowInView:self.view];选择选项时,我在日志中显示一条消息以显示