问题
I created an UITabbarController that its first item is an UIViewController, this UIViewController contains a button that must open UITableViewController.
I created the UITableViewController and UIViewController in the StoryBoard and gave them identifier name.
my problem is,when I press the button that is in the UIViewController to open the table, it opens the UITableViewController but without the tabBar and I want the UITableViewController be as an item from the tabBar (item opens other item)
how to do this ?? can anyone show me sample code sorry for my bad explanation.
consider that I'm using Xcode4.3
回答1:
Embed ur view controller inside a navigation controller. make this navigation controller as the tabBar Controller's view controller(first item) .Don't present the table view controller modally . instead segue it using navigation controller.
来源:https://stackoverflow.com/questions/12446001/open-uitableviewcontroller-as-an-item-of-uitabbarcontroller