UINavigationBar should be modifiable for custom segues in UINavigationController

Originator:jtbandes
Number:rdar://13057385 Date Originated:21-Jan-2013 05:17 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:6.0
Classification:UI/Usability Reproducible:Always
 
Summary:
- It is impossible to create a "lifelike" custom UIStoryboardSegue to be used in a UINavigationController, because UINavigationBar resists manual manipulation. As such, there is no way to reproduce the default nav-item-push animation.

Steps to Reproduce:
- Create a custom UIStoryboardSegue subclass.
- Try to manipulate sourceViewController.navigationController.navigationBar manually to reproduce default animations.

Expected Results:
- Manual manipulation works, or there is an alternative API for mixing custom view transitions with default navbar/toolbar transitions.

Actual Results:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot call pushNavigationItem:animated: directly on a UINavigationBar managed by a controller.'

Notes:
Sometimes the error does not occur the first time (if the navigation bar hasn't realized that it is managed by a controller). If it works, try performing a segue a second time and it should crash.

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!