Make UIImage Compatible with NSCopying Protocol

The question is pretty simple, I need the UIImage to conform to the NSCopying protocol, but I absolutely don't know where to start this.

Do you have a pointer to help me?

Thanks in advance

+4
source share
1 answer
- (id) copyWithZone: (NSZone *) zone { return [[UIImage allocWithZone: zone] initWithCGImage: self.CGImage]; } 
+10
source

All Articles