iOS 13 隐藏 UITabber 的黑线

代码

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

因为黑线在父视图的尺寸范围外
见图:
在这里插入图片描述
如果图片看不了
看文字
黑线的Frame

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

变化多样的验证码输入框

https://github.com/xjh093/JHVerificationCodeView


发布了201 篇原创文章 · 获赞 220 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/xjh093/article/details/103048218