Using Navigation inside TabController in StoryBoar

2019-09-16 07:17发布

问题:

I am new to iPhone app development, I have a tabbed based app,

On first tab view I have a search form, on when I put value in search and get results in array I want get result in table but in Navigation View Controller, with a detailed view option and a button inside cell which will add cell items into favourites,

every thing is working fine, I am unable to get results in navviewcontroller table,

I am using storyboard in xcode 4.6.2.

回答1:

Just Select the View in Storyboard that you want to add navigation and then Editor ->Embed -> Navigation Controller. Then select all(View that you need in Tabbar you can also select Navigation Controller View ) the View and again Embed it in Tab Bar. I am Also Attaching Image so u can get a good idea.



回答2:

Did you make sure that the form view controller is actually inside a UINavigationController?

Edit: Since you're using a storyboard, here's what you need to do. Select your form view controller and choose Editor->Embed->Navigation controller. Then add a segue from the form view controller to the table view controller, and make it a push segue, and give it an identifier, you can do all of this in right pane. After that add the navigation controller, as a view controller to the UITabViewController.