Q:

UITabBar Appearance not working

I am trying to change the tint color of the UITabBarItem when it is selected with this line of code:
[[UITabBar appearance]setTintColor:[UIColor colorWithRed:89 green:216 blue:239 alpha:1]];

However when I select the TabBar the tint color becomes white.
Anyone know why?
Thank you!

A:

In uicolor:RGB, you need to devide the value of 255.
[UIColor colorWithRed:89/255.0f green:216/255.0f blue:239/255.0f alpha:1]

