iOS: Containment Change Callbacks not Called by Certain View Controllers

Originator:daniel
Number:rdar://11684012 Date Originated:16-Jun-2012 09:56 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:6.0
Classification:Other Bug Reproducible:Always
 
Summary:
UIViewController and UINavigationController do not go the whole nine yards when setting their respective viewControllers properties.
In addition, the children of these view controllers never seem to change their isMoving{From|To}ParentViewController state.

Steps to Reproduce:
Run the attached test project on iOS 5.0 to iOS 6.0 simulators (phone or pad, doesn’t matter) or devices taking a look at the console output.

Expected Results:
- At least at some point in the logs, there should be a message for "didMoveToParentViewController:".
- At least at some point in the logs, "isMoving{From|To}ParentViewController" should be "YES".

Actual Results:
- "isMoving{From|To}ParentViewController" is always "NO".
- "didMoveToParentViewController:" is never called.

Regression:
Bug occurs regardless of SDK since the introduction of view controller containment.

Notes:

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!