iOS 7 tabBar-line,如何删除它? [英] iOS 7 tabBar-line, how to remove it?
本文介绍了iOS 7 tabBar-line,如何删除它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Apple在iOS 7中的tabBar上添加了一条小线,它应该在tabBar和UI之间作为阴影或淡入淡出
Apple has added a tiny line over the tabBar in iOS 7 which is supposed to work as a shadow or fade between the tabBar and the UI
因为我使用的是定制的tabBar这条线很刺激。你怎么删除它?请告诉我这是可能的,否则我需要重新设计我的整个应用程序大声笑....
Since I am using a custom-made tabBar the line is quite irritating. How do you remove it? Please tell me it is possible, otherwise I need to redesign my whole app lol....
/问候
*修改
使用以下代码行解决了我的问题:
[[UITabBar appearance] setShadowImage:[[UIImage alloc] init]];
推荐答案
UIImage* tabBarBackground = [UIImage imageNamed:@"tabbar_bg.png"];
[[UITabBar appearance] setShadowImage:tabBarBackground];
[[UITabBar appearance] setBackgroundImage:tabBarBackground];
这篇关于iOS 7 tabBar-line,如何删除它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文