Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top