删除默认的tabbar颜色iOS

时间:2013-12-02 07:47:45

标签: ios xcode

我想将背景图片放到默认的标签栏这里我添加了背景标签栏背景图片的代码,但它同时显示我的背景图片和默认标签栏也请建议删除默认标签栏黑色图像.Plz参考下面图像以便更好地理解

提前致谢enter image description here

1 个答案:

答案 0 :(得分:-1)

尝试使用此代码:

// 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 *