Can't present a view controller in a UIActionSheet's didDismissWithButtonIndex: delegate method

Originator:peter
Number:rdar://17762871 Date Originated:22-July-2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8 beta 4
Classification: Reproducible:
 
Summary:
It's impossible to present a new view controller from the didDismissWithButtonIndex method of a UIActionSheet presented on the iPad.

Steps to Reproduce:
1. Create and show an action sheet using `showFromRect`.
2. Implement the actionSheet(actionSheet: didDismissWithButtonIndex:) method, presenting a view controller when it is called.

Expected Results:
View controller is presented when a button in the action sheet is tapped.

Actual Results:
No view controller is presented, and warnings are logged:

2014-07-22 11:53:04.452 ActionSheetTest[78364:11899560] Warning: Attempt to present <UIViewController: 0x78e544a0> on <_TtC15ActionSheetTest14ViewController: 0x7a166470> while a presentation is in progress!
2014-07-22 11:53:04.453 ActionSheetTest[78364:11899560] Warning: Attempt to dismiss from view controller <_TtC15ActionSheetTest14ViewController: 0x7a166470> while a presentation or dismiss is in progress!

Version:
iOS 8 beta 4

Configuration:
iPad simulator

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!