IOS 8 Tab Bar Item Background Colour

前端 未结 5 821
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 04:11

I\'ve been trying to find the solution to this for the last week, and I have had no luck after trying every possible solution I could find or think of. Every solution I foun

5条回答
  •  春和景丽
    2020-11-30 04:38

    You can try this one. Add this in AppDelegate.swift.

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
            // Override point for customization after application launch.
    
            UITabBar.appearance().translucent = false
            UITabBar.appearance().barTintColor = UIColor(rgba: "#12296f")
            UITabBar.appearance().tintColor = UIColor.whiteColor()
    
            return true
        }
    

    Don't forget to include this library. https://github.com/yeahdongcn/UIColor-Hex-Swift

提交回复
热议问题