UISplitViewController Not Receiving Delegate Callbacks

Originator:alan
Number:rdar://13613769 Date Originated:4/9/2013
Status:Open Resolved:
Product:iPad SDK Product Version:6.1
Classification:UI/App Usability Reproducible:Always
 
09-Apr-2013 06:43 PM Alan Livingston:
Summary:
 If the rootviewcontroller is a UISplitViewController, and a modal view controller is presented at app launch while in portrait, the UISplitViewController misses a round of delegate callbacks when the modal is dismissed.

Steps to Reproduce:
A UISplitViewController is the root view controller.  A separate view controller is presented modally in -[AppDelegate applicationDidBecomeActive:], with no animation. 

Launch app in portrait.  After modal view controller is presented, rotate to landscape and dismiss modal view controller.

In the attached project - 
1. launch in portrait
2. rotate to landscape
3. dismiss modal

Expected Results:
UISplitViewController delegate receives -splitViewController:willHideViewController:withBarButtonItem:forPopoverController: before the modal view controller is presented.  When the modal view controller is dismissed, after rotating to landscape, the delegate should receive -splitViewController: willShowViewController:invalidatingBarButtonItem: so the detail view can remove the invalidated bar button item.

Actual Results:
 -splitViewController:willHideViewController:withBarButtonItem:forPopoverController: before the modal view controller is presented. When the modal view controller is dismissed after rotating to landscape, the delegate does NOT receive -splitViewController: willShowViewController:invalidatingBarButtonItem:.  Rotate back to portrait and the delegate does not receive  -splitViewController:willHideViewController:withBarButtonItem:forPopoverController:.  After this, rotation events are handled correctly and the correct delegate methods are called.

Regression:
If the modal view controller is presented with animation:YES, all delegate methods are called correctly.  (but "Unbalanced calls to begin/end appearance transitions" is logged to console in this case).

Notes:

09-Apr-2013 06:43 PM Alan Livingston:
'SVCModalLogin.zip' was successfully uploaded

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!