简体   繁体   中英

how to load tab bar items dynamically in ios?

I have 2 tab bar items in popOver and there is plus button in popOver. When i click plus button i must remove currently displayed tab bar items and load other 3 tab bar items.

ex: tab1 and tab 2 are being displayed in popOver on launch. user press '+'button from popOver toolbar, tab 3 , tab4 and tab5 has to be displayed in same popOver.

Try creating both your UITabBar items and when the popOver conditon is met swap your tabbars out. Another idea would be to create another view with the second tabbar in it and just swap between UIViews.

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