I have created the tabBarController programmatically and I want to change color of tint color of images (not the bar) that tab contains. Can anyone tell me how to do that in Swift?
In your 'application:didFinishLaunchingWithOptions'
(window?.rootViewController as! UITabBarController).tabBar.tintColor = UIColor.red
or use appearance delegate.
UITabBar.appearance().tintColor = UIColor.red
Go to AppDelegate.swift file. In 'application:didFinishLaunchingWithOptions' write:
UITabBar.appearance().unselectedItemTintColor = UIColor.red
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.