TabBar - item

作者: 失忆的程序员 | 来源:发表于2021-06-01 16:05 被阅读0次

            v1.tabBarItem = UITabBarItem.init(title: "首页", image: UIImage(named: "shouye_nor")?.withRenderingMode(.alwaysOriginal), selectedImage: UIImage(named: "shouye_per")?.withRenderingMode(.alwaysOriginal))
            
            v2.tabBarItem = UITabBarItem.init(title: "我的", image: UIImage(named: "wode_nor"), selectedImage: UIImage(named: "wode_per"))
            
            UITabBar.appearance().tintColor = UIColor.orange;
            tabBarController.viewControllers = [v1, v2]

    相关文章

      网友评论

        本文标题:TabBar - item

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