ios7 - iOS 7 change tabBar selected icon -
i've created tabbar in storyboard , set custom image. want use different image "selected" state, know can't set image using storyboard how do programmatically?
i want change icon tint colour in code can't make happen either.
i appreciate please.
try in appdelegate.m
file
[tbc.tabbar setselectionindicatorimage:[uiimage imagenamed:@"your_image_name.png"]];
where tbc
- tabbarcontroller
uistoryboard *iphonesb = [uistoryboard storyboardwithname:@"main_iphone" bundle:nil]; customtabbarcontroller *tbc = [iphonesb instantiateinitialviewcontroller];
Comments
Post a Comment