苹果ios开发者

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

设置图片颜色

  tabBarVCtrl.tabBar.selectedImageTintColor = [UIColor greenColor];//设置tabBarItem选中时的字图颜色,iOS 8.0中没有该属性(若设置,会出现警告)

设置title颜色

[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName, nil]  forState:UIControlStateSelected];

 

posted on 2014-11-12 17:37  苹果ios开发者  阅读(267)  评论(0)    收藏  举报