UIImage -> CGImageRef
It is as simple as image.CGImage
where image
is a UIImage
object.
CGImageRef cgImage = [someImage CGImage];
write folowing to get CGImage from UIImage: Suppose u have an UIImage object ex imageObject then,
CGImage imageRef = imageObject.CGImage