简体   繁体   中英

make transparent navigation bar and transparent tab bar in ios 7.

how to create a transparent tab bar and navigation bar in ios 7 ? i tried setting

[[UITabBar appearance]setBarTintColor:[UIColor clearColor]];

but then a translucent tab bar appears. then i tried setting the translucency property of tab bar to NO

[self.tabBarController.tabBar setTranslucent:NO];

also the tab button is always highlighted in blue color. Even though i put different color images . has anyone had similar experiences ? observed only in ios7

By default the selected tab button item has highlighted blue color and unselected has gray color. This behavior is a independent of tool bar item image color.

Example to change the selection color for tab Bar item

self.tabController.tabBar.tintColor = [UIColor redColor];

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM