Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 iOS 7 中创建透明的标签栏和导航栏?我试过设置
[[UITabBar appearance]setBarTintColor:[UIColor clearColor]];
但随后会出现一个半透明的标签栏。然后我尝试将标签栏的半透明属性设置为 NO
[self.tabBarController.tabBar setTranslucent:NO];
选项卡按钮也始终以蓝色突出显示。即使我放了不同颜色的图像。有没有人有类似的经历?仅在 ios7 中观察到
默认情况下,选中的选项卡按钮项具有突出显示的蓝色,未选中的项具有灰色。此行为与工具栏项图像颜色无关。
更改选项卡栏项目的选择颜色的示例
self.tabController.tabBar.tintColor = [UIColor redColor];