I created a function for splitting an image into multiple images, but when I take take the CGImage of the UIImage, the CGImage returns NULL
NSArray* splitIma
I have created UIImage from CGImage.
UIImage
CGImage
CIImage *ciImage = image.CIImage; CIContext *context = [CIContext contextWithOptions:nil]; CGImageRef ref = [context createCGImage:ciImage fromRect:ciImage.extent]; UIImage *newImage = [UIImage imageWithCGImage:ref];
And now newImage.CGImage is not nil
newImage.CGImage
nil