UITabbar 相关属性设置
背景颜色的设置
1 | NSString *tabbarBackgroundImage = [[NSBundle mainBundle] pathForResource:@"bg_tabbar@2x" ofType:@"png"]; |
tabbar字体的颜色设置
1 | [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor grayColor],UITextAttributeTextColor, nil] forState:UIControlStateNormal]; |
加一个图片重新调整的函数
1 | - (UIImage *)reSizeImage:(UIImage *)image toSize:(CGSize)reSize |