【发布时间】:2013-12-02 16:25:50
【问题描述】:
我想将背景图片放置到默认标签栏这里我添加了背景标签栏背景图片的代码,但它同时出现了我的背景图片和默认标签栏也请建议删除默认标签栏黑色图像。请参考下面图片便于理解
提前感谢
【问题讨论】:
我想将背景图片放置到默认标签栏这里我添加了背景标签栏背景图片的代码,但它同时出现了我的背景图片和默认标签栏也请建议删除默认标签栏黑色图像。请参考下面图片便于理解
提前感谢
【问题讨论】:
试试这个代码:
// this will generate a gray tab bar
tabBarController.tabBar.barTintColor = [UIColor grayColor];
tabBarController.tabBar.translucent = false;
// this will give selected icons and text your apps tint color
tabBarController.tabBar.tintColor = [UIColor redColor]; // appTintColor is a UIColor *
【讨论】: