美文网首页
swift 隐藏UITabbar顶部分割线

swift 隐藏UITabbar顶部分割线

作者: 孤城一抹霞 | 来源:发表于2021-09-17 10:35 被阅读0次
if #available(iOS 13.0, *) {
            let appearance = UITabBarAppearance.init()
            appearance.backgroundColor = UIColor.white
            appearance.shadowColor = UIColor.clear
            self.tabBar.standardAppearance = appearance
        } else {
            UITabBar.appearance().backgroundImage = UIImage.init()
            UITabBar.appearance().shadowImage = UIImage.init()
            UITabBar.appearance().backgroundColor = UIColor.white
        }

相关文章

网友评论

      本文标题:swift 隐藏UITabbar顶部分割线

      本文链接:https://www.haomeiwen.com/subject/dqpjgltx.html