-(void)hiddenTopLine
{
/// 隐藏底部 TabBar 的上横线
for (UIView *view in self.tabBarController.tabBar.subviews) {
if ([view isKindOfClass:[UIImageView class]] && view.bounds.size.height <= 1) {
UIImageView *ima = (UIImageView *)view;
// ima.backgroundColor = [UIColor redColor];
ima.hidden = YES;
}
}
}
//或者
[self.tabBar setClipsToBounds:YES];
去除tabBar上方横线
最新推荐文章于 2023-11-05 12:48:37 发布