iOS change tabbar item color is safe?

前端 未结 3 725
不知归路
不知归路 2021-01-07 07:24

I am properly using following method to change tabbar icon color,

[tabBarController.tabBar setSelectedImageTintColor:[UIColor redColor]];

b

3条回答
  •  失恋的感觉
    2021-01-07 08:18

    I didn't try it myself but I took a look at the UITabBar Class Reference. The property selectedImageTintColor is documented. So this means, you are allowed to use it. Normally Apple only rejects application that use undocumented (not public) APIs. So you are safe to use it.

    You can see there too that the property is available in iOS 5 and later.

提交回复
热议问题