You need to get the color space through CGImage. You can do this with the following line of functions / properties:
@property(nonatomic, readonly) CGImageRef CGImage
CGColorSpaceRef CGImageGetColorSpace (
CGImageRef image
);
, , :
CGColorSpaceRef colorspace = CGImageGetColorSpace([myUIImage CGImage]);
, , get/create/copy CG.