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
It happens in some cases when we try to crop image. I found the solution like this try this may be this can help you:-
NSData *imageData = UIImageJPEGRepresentation(yourImage, 0.9); newImage = [UIImage imageWithData:imageData];