开发者

how to load tab bar items dynamically in ios?

开发者 https://www.devze.com 2023-03-30 03:23 出处:网络
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.

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 '+'but开发者_如何学Pythonton 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消