首页 > 移动平台 > 详细

IOS8 下修改TabBar上的按钮的点击颜色

时间:2015-04-21 14:36:27      阅读:425      评论:0      收藏:0      [点我收藏+]

    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];


IOS8 下修改TabBar上的按钮的点击颜色

原文:http://blog.csdn.net/s133315202/article/details/45169803

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!