开发者

How to customize iPhone UITabBarController selected icon, background?

开发者 https://www.devze.com 2023-03-24 23:14 出处:网络
In the UITabBarController I have implemented.. (the standard one).. when an item开发者_Python百科 is selected, it has an opaque grey square background behind the item. Is there a way to change the col

In the UITabBarController I have implemented.. (the standard one).. when an item开发者_Python百科 is selected, it has an opaque grey square background behind the item. Is there a way to change the colour and opacity of that square?

Would prefer if I don't have to use an external API or hack.

Thanks!


From what I know, there is no documented way of changing view properties of UITabBar, without doing some kind of hacks like subclassing UITabBar and putting colorful top layer that would became a tint . You will most likely need to create your own tab bar using UIButtons.

0

精彩评论

暂无评论...
验证码 换一张
取 消