MWPhotoBrowser
                                
                                 MWPhotoBrowser copied to clipboard
                                
                                    MWPhotoBrowser copied to clipboard
                            
                            
                            
                        memory leak
 
#import "UIImage+MWPhotoBrowser.h"
@implementation UIImage (MWPhotoBrowser)
+ (UIImage *)imageForResourcePath:(NSString *)path ofType:(NSString *)type inBundle:(NSBundle *)bundle {
    return [UIImage imageWithContentsOfFile:[bundle pathForResource:path ofType:type]];
}
+ (UIImage *)clearImageWithSize:(CGSize)size {
    UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
    UIImage *blank = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return blank;
}
@end
memory leak: [UIImage imageWithContentsOfFile:[bundle pathForResource:path ofType:type]];