简体   繁体   中英

ios Tab Bar Navigation

I am wondering if it is possible to have a view controller in an iOS app that has a tabbar @ the bottom with links to other view controllers but no tab for the current view itself?

Ideally what I would like to do is have a view controller A with a tab bar to views B and C. When navigating to page B or C you would see the B/C tab selected in the tab bar. When navigating back to controller A you would not see the tab bar, but once navigating back to view B/C it would show again.

Not that should matter but I am using Xamarin for development.

You should be able to. You add a UITabBar to ViewA. You can then add ViewB and ViewC as UITabBarItems to the UITabBar.

You would need a button in ViewB and ViewC that leads back to View A to get back to it (since ViewA will not be listed in the tab bar).

You can NOT use a UITabBarController for this. UITabBarController does not allow for customizing the UITabBar like this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM