I would like to subclass UINavigationController to include a few types of headers that can transition from one to the other. I'm deliberating on a few things in the design:
- How should I manage the size of the child controller views? Constraining them to the bottom of each kind of header seems chunky and difficult to manage during transitions.
- I tried assigning a UIView subclass to the UINavigationController's view in loadView(), but doing so causes child controller views to not display (it appears black instead). Why does this unexpected behavior occur?
- How do I support the "drag from left to right" transition of UINavigationController?
- Is there a way to achieve this by subclassing UINavigationBar? If not, how can my custom view support UINavigationController's transition animations?
- Would there be any advantage to subclassing UIViewController instead and writing my own implementations of the basic UINavigationController behaviors?