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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top