I have been looking for weeks now and had no luck trying to find a tutorial for Xcode 4 showing how to add a Table View to a Tab Bar app. I was wondering if you could point me in the right direction?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Any TabBarController tutorial should do because you add UIViewControllers to the tab bar. For the table view, simply create a UITableViewController. You should be able to add that to the tab bar controller … or any other view controller. For example, if you find some other tutorial doing a TabBar with a navigationController … simply replace the navigationController part of the tutorial with a UITableViewController. There’s also plenty of docs and tutorials on UItableViewControllers.
For example, if you look at this code in an app delegate didfinishLaunchingWithOptions. Pior to this, a MyTableViewController was created (UITableViewController) and some other UIViewController.
And then in each of those view controllers that you added to the tabbar, make sure you add the tabbar item to them in their init