0

I do resizing for FullReoslutionImage, so it may introduce memorywarning from iOS. When I recieved memorywarning, it sometimes unload my ALassetlibrary for album, and it introduce crash when users choose image. How could I prevent this kind of problem, how to unload my other resources and other viewController? On other hand, when viewcontroller is unloaded, when I go back to this view , it seems introduce crash. How to prevent it ? Thank you very much!!

4

1 回答 1

0

我发现当我使用 3rd 方 JPEG 解码库在 2048x2048 UIImage 下对其进行解码和调整大小时,它减少了很多。所以经常发生内存不足可能是由于创建大于 2Kx2K 的 UIImage 造成的。希望这可以帮助。

于 2012-12-16T01:27:54.760 回答