由于CoreAnimation和CG图像的脏内存
我在我的应用程序与脏内存大小有问题,并希望清除脏内存。
我的应用程序越来越大。 但主要的问题是CoreAnimation
和CG Image
types。 Memory Tag 70
通过我的Assync Image Load View清除。
如何从脏内存清除CoreAnimation和CG图像? 57%的居民脏记忆对我来说似乎有点高。
也许你还没有发布它们,使用CGImageRelease(cgImage)
, CGPathRelease(path);
等等:
CGImageRef cgImage = CGImageCreateWithImageInRect(fullImage.CGImage, CGRectMake(...)); UIImage * image = [UIImage imageWithCGImage:cgImage]; CGImageRelease(cgImage);
和核心animation的path
CGMutablePathRef path = CGPathCreateMutable(); ... CGPathRelease(path);
等等。