ios - UITabBarController don't autosize UITabBarItem -


uitabbar

i'm new ios learner, when follow tutorial, met problems. in tutorial, if have 2 tab bar item did, there 2 button on tab bar width equal 50% tab bar width. tab bar item 100% size.

so can fix ?

i found nice tutorial via link (https://discussions.apple.com/thread/2099944?start=0&tstart=0).

you should implement uitabbardelegate protocol documentation here:(https://developer.apple.com/library/ios/documentation/uikit/reference/uitabbardelegate_protocol/reference/reference.html).

once implementing protocol, use - (void)tabbar:(uitabbar *)tabbar didselectitem:(uitabbaritem *)item method know when user changes selected item of tab bar. in method's implementation, have check item selected, , manually change view's content based on that.

hope in issue.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -