My app is a tab bar application, which one of the tabs is a TableViewController instead of a viewController which works fine (the table displays great) but where and how do I add UINavigationController to it? 🙂
My app is a tab bar application, which one of the tabs is a
Share
You can do this 2 different ways… in IB or code. If I’m dealing with a TabBar I usually do it in IB. All you have to do there is is drag a NavigationController object where your tableview object currently sits… then just make your tableviewcontroller the first child of your new navigation object.
or
If you want to do it in code… I would just set it up within your app delegate (usually because a tab bar is at the highest point in your app… meaning it appears right away after loading):
You should then release the objects you just created since they will be retained by the TabBarController and Navigation Controller. Hope this helps