uialertsheet

Checkbox in UIAlertController with actionsheet in objective c [duplicate]

送分小仙女□ 提交于 2019-12-13 05:43:05
问题 This question already has an answer here : Add Checkbox List to UIAlertController (1 answer) Closed 3 years ago . I want to add the checkbox i.e uibutton and uilabel in one option in UIAlertAction and only button in another UIAlertAction in UIAlertController. Please help and advice how to achieve it. UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"My Alert" message:@"This is an action sheet." preferredStyle:UIAlertControllerStyleActionSheet]; // 1 UIAlertAction

UIAlertController is Crashed (iPad)

我怕爱的太早我们不能终老 提交于 2019-11-30 06:35:12
问题 I am using Xcode 6 to develop an iOS Application. When I used UIAlertController , it can be worked well on iPhone 6 simulator, but crashes on iPad simulator. My problem while clicking "share", then it could be crashed. How could I solve it? Here is my Code: override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject] { var shareAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Share", handler: { (action

Use NSArray to specify otherButtonTitles?

不羁岁月 提交于 2019-11-30 05:34:27
UIAlertSheet's constructor takes an otherButtonTitles parameter as a varg list. I'd like to specify the other button titles from an NSArray instead. Is this possible? i.e. I have to do this: id alert = [[UIActionSheet alloc] initWithTitle: titleString delegate: self cancelButtonTitle: cancelString destructiveButtonTitle: nil otherButtonTitles: button1Title, button2Title, nil]; But since I'm generating the list of available buttons at runtime, I really want something like this: id alert = [[UIActionSheet alloc] initWithTitle: titleString delegate: self cancelButtonTitle: cancelString

Use NSArray to specify otherButtonTitles?

邮差的信 提交于 2019-11-29 04:29:23
问题 UIAlertSheet's constructor takes an otherButtonTitles parameter as a varg list. I'd like to specify the other button titles from an NSArray instead. Is this possible? i.e. I have to do this: id alert = [[UIActionSheet alloc] initWithTitle: titleString delegate: self cancelButtonTitle: cancelString destructiveButtonTitle: nil otherButtonTitles: button1Title, button2Title, nil]; But since I'm generating the list of available buttons at runtime, I really want something like this: id alert = [

UIAlertController is Crashed (iPad)

柔情痞子 提交于 2019-11-28 20:16:41
I am using Xcode 6 to develop an iOS Application. When I used UIAlertController , it can be worked well on iPhone 6 simulator, but crashes on iPad simulator. My problem while clicking "share", then it could be crashed. How could I solve it? Here is my Code: override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject] { var shareAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Share", handler: { (action:UITableViewRowAction!, indexPath:NSIndexPath!) -> Void in let shareMenu = UIAlertController(title: nil,