设置App的名称
![](http://upload-images.jianshu.io/upload_images/3069532-2eba5437c349314f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
设置App的启动图片
![](http://upload-images.jianshu.io/upload_images/3069532-ac389a3485abed39.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
需要注意点是,App要杀掉重启才能显示出启动图片
2种方法防止图片被渲染
1.
vc02.tabBarItem.image = [UIImage imageNamed:@"tabBar_new_icon"];
UIImage *image = [UIImage imageNamed:@"tabBar_new_click_icon"];
image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
vc02.tabBarItem.selectedImage = image;
2.
![](http://upload-images.jianshu.io/upload_images/3069532-8b9ef3fd28f90396.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
文字被渲染解决方法
1.
vc02.tabBarItem.title = @"新帖";
NSMutableDictionary *attrs = [NSMutableDictionary dictionary];
attrs[NSForegroundColorAttributeName] = [UIColor grayColor];
[vc02.tabBarItem setTitleTextAttributes:attrs forState:UIControlStateNormal];
NSMutableDictionary *attrs1 = [NSMutableDictionary dictionary];
attrs1[NSForegroundColorAttributeName] = [UIColor blackColor];
[vc02.tabBarItem setTitleTextAttributes:attrs1 forState:UIControlStateSelected];
2.
- 通过appearance统一设置所有UITabBarItem的文字属性
- 后面带有UI_APPEARANCE_SELECTOR的方法,都可以通过appearance对象来统一设置
NSMutableDictionary *dic = [NSMutableDictionary dictionary];
dic[NSForegroundColorAttributeName] = [UIColor grayColor];
NSMutableDictionary *selectedDic = [NSMutableDictionary dictionary];
selectedDic[NSForegroundColorAttributeName] = [UIColor darkGrayColor];
UITabBarItem *item = [UITabBarItem appearance];
[item setTitleTextAttributes:dic forState:UIControlStateNormal];
[item setTitleTextAttributes:selectedDic forState:UIControlStateSelected];