Tag: bartintcolor

UINavigationbar barTintColor不能在UISplitview模板中工作

我正在尝试几个小时来更改我的应用程序中的导航栏barTintValue。 我正在使用Swift的Xcode的Master-Detail模板,我在这里读了很多问题,但答案始终是使用 navigationController?.navigationBar.barTintColor = UIColor.redColor() 这在AppDelegate中工作正常,但我想要在运行时根据其内容更改每个DetailView中的颜色。 当我把这个代码到主或DetailViewController只是没有任何反应。 我之前和之后打印出的颜色,它确实设置的值,它只是不会改变。 我需要更新视图还是什么? 感谢您的帮助! MAIK

更改未select的UITabBarController项目标题和背景图像的tintColor

我怎样才能改变一个未经select的UITabBarItem标题和背景图像iOS 8的tintColor? 未select状态的默认颜色是浅灰色,但不会显示在我的深色阴影UITabBar背景上 我希望我的未选中状态具有[UIColor blackColor]的颜色 在我的应用程序代表didfinishlaunchingwithoptions:我有 UIImage *deselectedE = [[UIImage imageNamed:@"mincraft_axe_green_32.png"] imageWithRenderingMode:UIImageRenderingModeAutomatic]; UIImage *selectedE = [[UIImage imageNamed:@"mincraft_axe_green_32.png"] imageWithRenderingMode:UIImageRenderingModeAutomatic]; e.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Profile" image:deselectedE selectedImage:selectedE]; [[UITabBar appearance] setTintColor:[UIColor blackColor]];