0

I have two controllers . A HomeVC and a UITabBar VC with 5 tabs. Each Tab has a view associated with it added in storyboard. Default landing page for the application is the view related to first tab. In each of the five tab views , there is a button named "menu" which takes me to the view related to HomeVC. Now, the problem is , when I press menu button and go to HomeVC's view, the tab bar does not appear. Is there a way to retain the tab bar in my Home VC's view with no tab selected?

Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161
Vamshi Krishna
  • 979
  • 9
  • 19
  • I predict that you are using segues to go "back" to the home VC right? Can you show a screenshot of your storyboard. – Fogmeister Oct 22 '14 at 09:59
  • no..i am using the storyboard id..like... HomeViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"HomeVC"]; [self.navigationController pushViewController:controller animated:YES]; – Vamshi Krishna Oct 22 '14 at 11:33
  • OK, same thing. Can you show the storyboard anyway just so I can get an idea of what's going on. – Fogmeister Oct 22 '14 at 11:34
  • I need 10 reputation to attach an image..I just added the tabs by dragging the tabbar controller to the required view controller and selecting the option view controller..like.."Relationship view controller to view x" – Vamshi Krishna Oct 22 '14 at 11:39
  • Can you not just put a link to a photo? – Fogmeister Oct 22 '14 at 11:40
  • http://stackoverflow.com/questions/9694724/how-within-a-tab-bar-controller-do-i-segue-from-one-view-controller-to-another-a?rq=1 I am stuck with same problem – Vamshi Krishna Oct 22 '14 at 12:55

1 Answers1

0

You just have to embed your UITabBar ViewController in a Navigation Controller.

Sreejith
  • 1,345
  • 13
  • 25