Hi, Pavel Osipov, there is a huge memory problem when reader photo using POSAdjustedAssetReaderIOS7, my iPhone 4s run into memory warning and the app crashed when I choose some photos to upload. At first I find not all photos will lead to huge memory usage. I debug by using the instruments and find only the image with POSAdjustedAssetReaderIOS7 will cause this problem.
I did not dig into the code but it seems you will use POSAdjustedAssetReaderIOS7 only here
if (representation.metadata[@"AdjustmentXMP"] != nil) {
POSAdjustedAssetReaderIOS7 *assetReader = [POSAdjustedAssetReaderIOS7 new];
assetReader.JPEGCompressionQuality = _adjustedJPEGCompressionQuality;
return assetReader;
}
Currently I comment this and use POSFastAssetReader instead, hope this can help you find the cause.
Hi, Pavel Osipov, there is a huge memory problem when reader photo using POSAdjustedAssetReaderIOS7, my iPhone 4s run into memory warning and the app crashed when I choose some photos to upload. At first I find not all photos will lead to huge memory usage. I debug by using the instruments and find only the image with POSAdjustedAssetReaderIOS7 will cause this problem.
I did not dig into the code but it seems you will use POSAdjustedAssetReaderIOS7 only here
Currently I comment this and use POSFastAssetReader instead, hope this can help you find the cause.