I'm creating a custom UITabBarController
where I customise the tabBar
this way:
self.tabBar.backgroundImage = [UIImage imageNamed:@"imgTabBarBeta.png"];
I then change the selector indicator this way:
self.tabBar.selectionIndicatorImage = [UIImage imageNamed:@"imgTabBarSegmentSelected.png"];
But apparently it becomes a selected image for all 4 of my tabs, where I would like to have each tab its own selectionIndicatorImage
.
Any ideas on how to implement this kind of thing? Thanks in advance!
You can check out this:
Setting a background image for a tabbar
http://www.raywenderlich.com/4344/user-interface-customization-in-ios-5
Or try this Github project
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.