Using Navigation inside TabController in StoryBoard.

帅比萌擦擦* 提交于 2019-12-25 05:28:14

问题


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.



来源:https://stackoverflow.com/questions/16859692/using-navigation-inside-tabcontroller-in-storyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!