@interface UIImage (PJXExtention)

@property(nonatomic,strong,readonly)UIImage * originarImage;

 

+(UIImage *)originarImageNamed:(NSString *)name NS_DEPRECATED_IOS(2_0, 3_0,"过期了 ,用pjx_originarImageNamed");

+(UIImage *)pjx_originarImageNamed:(NSString *)name;

@end

 

#import "UIImage+PJXExtention.h"

 

@implementation UIImage (PJXExtention)

+(UIImage *)originarImageNamed:(NSString *)name

{

    UIImage * image = [UIImage imageNamed:name];

    image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

    return image;

}

 

-(UIImage *)originarImage

{

    return [self imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

}

+(UIImage *)pjx_originarImageNamed:(NSString *)name{

   

    UIImage * image = [UIImage imageNamed:name];

    image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

    return image;

 

}

 

@end