0
点赞
收藏
分享

微信扫一扫

iOS 13 隐藏 UITabber 的黑线

迎月兮 2022-10-25 阅读 47


代码

    // 隐藏黑线
if ([[UIDevice currentDevice].systemVersion floatValue] >= 13.0) {
// 黑线在父视图尺寸外
self.tabBar.clipsToBounds = YES;
}else{
self.tabBar.backgroundImage = [[UIImage alloc]init];
self.tabBar.shadowImage = [[UIImage alloc]init];
}

因为​​黑线​​在父视图的尺寸范围外

见图:

iOS 13 隐藏 UITabber 的黑线_输入框


如果图片看不了

看文字

黑线的​​Frame​​是

X: 0
Y: -0.33
W: 375
H: 0.33

变化多样的验证码输入框

​​https://github.com/xjh093/JHVerificationCodeView​​


举报

相关推荐

0 条评论