UINavigationController is a very strict class, btw. You seem to be playing around with it from what you were saying, though you were a bit difficult to follow at the end.
Simply add whatever view you want into the NavigationController via the initWithRootViewController method.
Also make sure that you always create the navigationController IN THE APP DELEGATE!!!!! That Is SOOO important. I have seen a few apps on App Store with the stupid error of subclassing UINavigationController in another place other than the app delegate.
Never play around with NavigationController by subclassing it. There is NO reason to, and it creates an error as the navigationController compensates for the status bar at the top of the view. This leaves a big black hole wherever it was subclassed.
Points to take away:
NEVER subclass UINavigationControllers. (same also applies with UITabBarControllers]
Just add whatever ViewController you want via the initWithRootViewController: method
Check out the View Controller Programming Guide for more ideas of what to do with navigationControllers.
|