이제 핵심 그래픽을 릴리스하기 시작 했으므로 약간의 도움이 필요할 수 있습니다.핵심 그래픽의 릴리스에 문제가 있습니다.
I는 다음과 같다 코드가 있습니다.
context_reclaim: invalid context
context_finalize: invalid context
어떤 생각을에 같이 릴리스 라인, 내가 넣어했습니다 그건 그래도 난 그것으로 오류를 받고 있어요
UIImage *buttonImage() {
UIGraphicsBeginImageContextWithOptions(bounds.size, NO, 0);
CGContextRef context = UIGraphicsGetCurrentContext();
CGColorSpaceRef baseSpace = CGColorSpaceCreateDeviceRGB();
CGMutablePathRef outerPath;
CGMutablePathRef midPath;
CGMutablePathRef innerPath;
CGMutablePathRef highlightPath;
//Some button stuff
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
CGContextRelease(context);
return image;
}
이 인스턴스에 어디서 릴리스해야합니까?