1
UIGraphicsGetImageFromCurrentImageContext에서 UIImage를 얻고 있습니다.하지만 메모리가 매우 큽니다.UIImage 이미지 표현을 변환합니다.
UIGraphicsBeginImageContext([self bounds].size);
// CGContext procedures
_cacheImage = UIGraphicsGetImageFromCurrentImageContext();
이미지의 크기는 거의 아이 패드의 화면 크기 (약간 작은)로, 그리고 내가 같은 것을 할 때
NSData *data = UIImagePNGRepresentation(_cacheImage)
NSLog(@"%i", data.lenght);
그것은 길이에 걸쳐 70처럼 날을 제공합니다 . 나는 .7MB 파일을 추측하고 있나?
어쨌든 이미지 크기를 줄이는 방법이 있으면 알려 주시기 바랍니다.