草庐IT

UIActionsheet

全部标签

objective-c - 社交操作表(类似于 iOS 6)

在iOS6上的一个变化是,当你想分享一些东西时,它会弹出一个类似这样的操作表:我见过一些其他应用程序使用它,是否有一种本地方法可以在不制作自定义操作表的情况下执行此操作?谢谢! 最佳答案 NSString*textToShare=@"yourtext";UIImage*imageToShare=[UIImageimageNamed:@"yourImage.png"];NSArray*itemsToShare=@[textToShare,imageToShare];UIActivityViewController*activityVC

ios - 更改 UIActionSheet 按钮中的文本颜色

在我的项目中,我使用UIActionSheet来显示某种排序类型。我想更改操作表按钮中显示的文本的颜色。我们如何更改文本颜色? 最佳答案 iOS8:UIActionSheet已弃用。UIAlertController遵循-[UIViewtintColor],所以这是可行的:alertController.view.tintColor=[UIColorredColor];更好的是,在您的应用程序委托(delegate)中设置整个窗口的色调:self.window.tintColor=[UIColorredColor];iOS7:在您的

ios - 更改 UIActionSheet 按钮中的文本颜色

在我的项目中,我使用UIActionSheet来显示某种排序类型。我想更改操作表按钮中显示的文本的颜色。我们如何更改文本颜色? 最佳答案 iOS8:UIActionSheet已弃用。UIAlertController遵循-[UIViewtintColor],所以这是可行的:alertController.view.tintColor=[UIColorredColor];更好的是,在您的应用程序委托(delegate)中设置整个窗口的色调:self.window.tintColor=[UIColorredColor];iOS7:在您的

iphone - UIActionSheet 没有在 iOS 7 GM 的最后一项上显示分隔符

这可能是iOS7上的一个错误。但是最后一个按钮和前一个没有分开从图中可以看出。这在使用iOS7GM的模拟器和设备上都会发生。其他人有同样的问题吗?UIActionSheet*actionSheet=[[UIActionSheetalloc]initWithTitle:@"Title"delegate:selfcancelButtonTitle:nildestructiveButtonTitle:nilotherButtonTitles:@"First",@"Second",@"Third",@"Fourth",nil];[actionSheetshowInView:self.view]

iphone - UIActionSheet 没有在 iOS 7 GM 的最后一项上显示分隔符

这可能是iOS7上的一个错误。但是最后一个按钮和前一个没有分开从图中可以看出。这在使用iOS7GM的模拟器和设备上都会发生。其他人有同样的问题吗?UIActionSheet*actionSheet=[[UIActionSheetalloc]initWithTitle:@"Title"delegate:selfcancelButtonTitle:nildestructiveButtonTitle:nilotherButtonTitles:@"First",@"Second",@"Third",@"Fourth",nil];[actionSheetshowInView:self.view]

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 - 在 IOS 8 的 UIActionSheet 中添加 UIPickerView 不起作用

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

ios7 - UIActionSheet 与 swift

我创建了一个actionsheet,但问题是委托(delegate)方法没有被调用myActionSheet=UIActionSheet()myActionSheet.addButtonWithTitle("Addevent")myActionSheet.addButtonWithTitle("close")myActionSheet.cancelButtonIndex=1myActionSheet.showInView(self.view)///UIActionSheetDelegatefuncactionSheet(myActionSheet:UIActionSheet!,clic

ios7 - UIActionSheet 与 swift

我创建了一个actionsheet,但问题是委托(delegate)方法没有被调用myActionSheet=UIActionSheet()myActionSheet.addButtonWithTitle("Addevent")myActionSheet.addButtonWithTitle("close")myActionSheet.cancelButtonIndex=1myActionSheet.showInView(self.view)///UIActionSheetDelegatefuncactionSheet(myActionSheet:UIActionSheet!,clic

ios - swift 中的 UIActionSheet 将取消按钮放在 iOS 7 的顶部

我正在将我的应用程序从objective-c重写为Swift,我注意到UIActionSheet在Swift版本中的行为与在obj-c版本中的行为不同。Obj-c版本快速版本这仅在iOS7上存在问题,它在iOS8上对于Swift和Obj-c版本都工作正常(意味着取消在底部)这是一段相关的代码:varsheet=UIActionSheet(title:nil,delegate:self,cancelButtonTitle:"Cancel",destructiveButtonTitle:nil)sheet.addButtonWithTitle("Camera")sheet.addButto