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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -