Pat*_*ceK 3 uitabbarcontroller uitabbaritem uitabbar ios7
在iOs7下,而不是早期版本,我有一条线穿过我的标签栏(在下面链接的示例图片上用绿色箭头显示).
我不知道问题出在哪里.知道怎么纠正吗?
非常感谢你.

Mic*_*lum 11
如果您指的是条形图顶部的几个像素阴影,则很容易删除.您所要做的就是在标签栏上启用clipsToBounds,如下所示:
[self.tabBarController.tabBar setClipsToBounds:YES];
Run Code Online (Sandbox Code Playgroud)
创建TabBar后添加这两行
[[UITabBar appearance] setShadowImage:[[UIImage alloc] init]];
[[UITabBar appearance] setBackgroundImage:[[UIImage alloc] init]];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5325 次 |
| 最近记录: |