简体   繁体   中英

how can i create or add the tableviews in the tab bar application in Xcode 4?

I am using the Tab bar based application and in First view (or first tab) i want to view the table view from which i select should navigate. How can I do it?

Just put your tableViewController into the tabBarController.viewControllers 's array:

tabBarController.viewControllers = [NSArray arrayWithObjects:tableViewController, commonViewController_1, commonViewController_2, commonViewController_3, nil];

I suggest you do more searching on Google by yourself. :)

Go to apple programming guide they have explained it properly. U can refer to this thread as well Create UINavigationController in UITableViewController inside UITabBarController

您看到此网址并实施

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM