开发者

is i need to create UINavigationController for each Tabbar?

开发者 https://www.devze.com 2022-12-25 10:56 出处:网络
i have a problem is i got UItabbarController it contain 3 Tabbars each tabbar need to create own UINavigationController for them?

i have a problem is i got UItabbarController it contain 3 Tabbars each tabbar need to create own UINavigationController for them?

in IB it开发者_运维知识库 can only link UINavigationController to 1 navigationcontroller of tabbar only. it can't multiple link.

how can i resolve for it. i want to hide and unhide my toolbar. i think it it a bad idea if i must create 3 uinavigationcontroller instance variable for each tabbar.

how can i reslove this issue?


Answer here: just wrote tabbar hide in google, first result

edit: misread the english, sorry


There's nothing wrong with creating a UINavigationController for each tab in your tab bar. The answer that Marek linked to covers how to use the hidesButtonWhenPushed property. My personal preference is to create things like UINavigationControllers in code, and have them reference nib files for the actual viewControllers, but that's up to you.

0

精彩评论

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

关注公众号