SWIFT 2を使用してXCODE 7でUITabBarとUITabBarItemsのテキストとアイコンの色を変更するにはどうすればよいですか? デフォルトの灰色のテキストは、選択されていないタブバーの項目では薄くて読みにくいように見えます。
アクティブでないときはテキストとアイコンを白く、アクティブなときは #600c77 (紫) の色が必要です。
あなたのアイコンのために:
yourTabBar.tabBarItem = UITabBarItem(title: "Home", image: UIImage(named: "tab_icon_normal"), selectedImage: UIImage(named: "tab_icon_seelcted"))
あなたのテキストのために:
UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName: UIColor.YOURCOLOR()], forState:.Normal)
UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName: UIColor.YOURCOLOR()], forState:.Selected)