修改tabbarcontroller选中图片及选中颜色

1.修改选中图片:

UITabBarItem* item = [self.tabBarController.tabBar.items objectAtIndex:1];   //从0开始

item.selectedImage = [UIImage imageNamed:@"ItemSelProfile"];

 

2.修改选中颜色:

[self.tabBarController.tabBar setSelectedImageTintColor:[UIColor redColor]];

posted @ 2014-11-06 22:57  朋克  阅读(428)  评论(0编辑  收藏  举报