How can I change a color of image and label on UITabBar
on iOS 7.1? On iOS 7 I could make it by Tint
property. But on iOS 7.1 it doesn't work.
相关问题
- DBGrid - How to set an individual background color
- How do I change the color of the navigation bar ic
- Fast way to convert rgb to lab in python
- Curses for python. Convert ansi color codes from s
- How to change color of SVG pattern on usage?
相关文章
- Emacs/xterm color annoyance on Linux
- matplotlib bwr-colormap, always centered on zero
- MeshLab: How to import XYZRGB file
- ChartJS. Change axis line color
- set foreground color in FrameLayout in android pro
- Changing background color for a text annotation to
- Keras: Visualize ImageDataGenerator Output
- How to generate random pastel (or brighter) color
It works in the same way in iOS 7 and iOS 7.1!
In AppDelegate:
In every ViewController: (if you want to change the unselected image color)
The clue of this code is 'UIImageRenderingModeAlwaysOriginal':
Rendering Modes by Apple Documentation:
This changes the tint of both the image and the label, when selected.
UITabBarItem has never had a
tint
property. No built-in class has ever had atint
property. Nothing has changed here.In iOS 7 and 7.1, a UITabBar has a
tintColor
property because it is a UIView.