아래의 코드는 스프라이트를 자르는 방법을 보여 주지만, 메모리 사용은 지속적으로 증가합니다. 어떻게 해결할 수 있습니까?스프라이트 시트의 문제점
CGImageRef imgRef = [imgSprite CGImage];
[imgView setImage:[UIImage imageWithCGImage:CGImageCreateWithImageInRect(imgRef, CGRectMake(column*width, line, width, height))]];
CGImageRelease(imgRef);
이 코드는 0.1 간격으로 NSTimer에 의해 호출됩니다.