-[UIViewController performSegueWithIdentifier:sender:] should throw an exception if called outside the main thread

Originator:guilhermesampaio
Number:rdar://21103430 Date Originated:05/26/2015
Status:Open Resolved:
Product:iOS Product Version:8.3
Classification: Reproducible:Always
 
Summary:
When we call -[UIViewController performSegueWithIdentifier:sender:] outside the main thread the UIKit framework should throw an error to prevent inconsistent behaviour.

Steps to Reproduce:
1. Create a new project
2. Create two view controllers on the storyboard
3. Add a segue from the first view controller to the second on the storyboard
4. Embed the first view controller inside a navigation controller
5. On the viewDidAppear of the first view controller call performSegueWithIdentifier:sender outside the main thread

Expected Results:
The application should crash because of the inconsistence of calling performSegueWithIdentifier:sender outside the main thread

Actual Results:
The navigation controller get lost with a back button or sometimes it crashes. 

Version:
iOS 8.3

Notes:


Configuration:
iPhone 6 

Attachments:

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!