美文网首页
swift 修改系统tabbar

swift 修改系统tabbar

作者: 鹏飞说 | 来源:发表于2021-01-20 11:00 被阅读0次
tabBar.tintColor = UIColor(r: 70, g: 89, b: 255)
tabBarItem.imageInsets = UIEdgeInsets(top: -8, left: 0, bottom: 3, right: 0)
if #available(iOS 13.0, *) {
        let appearance = UITabBarAppearance()
        let normal = appearance.stackedLayoutAppearance.normal
        normal.titlePositionAdjustment = UIOffset(horizontal: 0,vertical: -5)
         self.tabBar.standardAppearance = appearance
  }

相关文章

网友评论

      本文标题:swift 修改系统tabbar

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