UITabBar functionality without UITabBarController

前端 未结 3 909
一个人的身影
一个人的身影 2020-12-20 07:08

I have this problem, I\'ve got a navigation-based application, and on the one of the detail view i need to have UITabBar, which will display some UITableViews. Since apple d

3条回答
  •  春和景丽
    2020-12-20 07:51

    When they are choosing an item from your table view are you pushing a new view controller onto your navigation controller? If so, you will leave the tab bar behind!

    Without some hefty hacking, you generally can't do what you're trying to do. What you'd have to do instead is to deal with adding new views yourself when a table cell is selected so the new views you add don't overlap the tab bar at the bottom. Though this will probably break the navigation controller.

    Though my advice is to rethink that part of the app's ui so you don't care that the tab bar vanishes. Sorry :(

提交回复
热议问题