[英]How to customize tab bar button and tab bar selected color?
I want customize tab bar..Not a gray color..How to customize tab bar ? 我想要自定义标签栏..不是灰色。如何自定义标签栏? How to change tab bar selected background color (default: blue color)?
如何更改标签栏选择的背景颜色(默认:蓝色)?
您要么使用私有API,这将导致您的应用程序被拒绝从App Store或您编写自己的标签栏控件。
在你的应用程序deletegate.m文件中试试这个
[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]];
This will be the useful link for what you are looking for 这将是您正在寻找的有用链接
Custom colors in UITabBar UITabBar中的自定义颜色
use the code customtabbar 使用代码customtabbar
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.