iPad app crashed due to memory warning while combining/merging two images
问题 My app is crashing due to heavy use of memory while I am doing image processing. Basically my whole app depends on following method in which logic for combining images are used another method i used for loading images from bundle. + (UIImage*)imageByCombiningImages:(UIImage*)firstImage withImage:(UIImage*)secondImage { @autoreleasepool { UIImage *image = nil; CGSize newImageSize = CGSizeMake(MAX(firstImage.size.width, secondImage.size.width), MAX(firstImage.size.height, secondImage.size