Using Navigation inside TabController in StoryBoar

2019-09-16 06:43发布

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.

2条回答
老娘就宠你
2楼-- · 2019-09-16 07:36

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. enter image description here

查看更多
看我几分像从前
3楼-- · 2019-09-16 07:43

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.

查看更多
登录 后发表回答