Preface: Organize and collect the common tools of iOS project development, and finally give the source download link.
1, let the picture do not render the tool class
Brief introduction:
Look directly at this tool class source code will know, how to set up:
1 //2 //Uiimage+render.h3 //Created by Heyang on 16/1/18.4 //copyright©2016 year Heyang. All rights reserved.5 //6 7 #import<UIKit/UIKit.h>8 9 @interfaceUIImage (Render)Ten+ (UIImage *) Imagewithoriginalrender: (NSString *) ImageName; One @end A -=========================================== - the // - //Uiimage+render.h - //Created by Heyang on 16/1/18. - //copyright©2016 year Heyang. All rights reserved. + // - + #import "Uiimage+render.h" A at @implementationUIImage (Render) -+ (UIImage *) Imagewithoriginalrender: (NSString *) ImageName - { -UIImage *image =[UIImage imagenamed:imagename]; - - return[Image imagewithrenderingmode:uiimagerenderingmodealwaysoriginal]; in } - @end
Working with Code instances
iOS Development-common tool Collection (OBJECTIVE-C) (continuous update)