问题:tabBar选中按钮的图片被渲染 -> iOS7之后默认tabBar上按钮图片都会被渲染 1.修改图片 2.通过代码
1.修改图片
2.通过代码
UIImage+Image.h
#import <UIKit/UIKit.h> @interface UIImage (Image) + (UIImage *)imageOriginalWithName:(NSString *)imageName; @end
UIImage+Image.m
#import "UIImage+Image.h" @implementation UIImage (Image) + (UIImage *)imageOriginalWithName:(NSString *)imageName { UIImage *image = [UIImage imageNamed:imageName]; return [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; } @end