我想让我的tabBar透明,我搜索了一下,但是所有的结果都只是部分透明而不是完全透明的tabBar,有些还是为IOS 5等。
我想达到Sketch 3中所显示的效果:
最简单的方法是什么?
我考虑过这样做:
// Make the tabBar transparent
self.tabBarController.tabBar.backgroundColor = [UIColor clearColor];
self.tabBarController.tabBar.translucent = YES;
但是那个结果并不完美:
非常感谢帮助!:)
真诚地, Erik
更新
// Make the tabBar transparent
[[UITabBar appearance] setBarTintColor:[UIColor clearColor]];
self.tabBarController.tabBar.translucent = YES;
viewWillAppear:
太晚了。尝试将其放在您的AppDelegate的application:didFinishLaunchingWithOptions:
中,看看是否有帮助。 - Johannes Fahrenkrug