标签:tabbar 点击变色
HomePageViewController *first = [[HomePageViewControlleralloc] init];
first.tabBarItem = [[UITabBarItemalloc] initWithTitle:@"首页"image:aImage selectedImage:nil];
UINavigationController *nav1= [[UINavigationController alloc]initWithRootViewController:first];
// 2种设置tabbar上的图片的方法:
first.tabBarItem = [[UITabBarItemalloc] initWithTitle:@"首页"image:aImage selectedImage:nil];
first.tabBarController.tabBar.selectedItem.selectedImage =
[UIImage imageNamed:@"shouye_sel.png"];
// 设置点击颜色//重要 (ios8)
nav1.tabBarController.tabBar.tintColor = [UIColorblackColor];
标签:tabbar 点击变色
原文地址:http://blog.csdn.net/s133315202/article/details/45169803