open UITableViewController as an item of UItabbarcontroller

泪湿孤枕 提交于 2019-12-11 16:21:44

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/12446001/open-uitableviewcontroller-as-an-item-of-uitabbarcontroller

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