The question is quite simple, I need to have an UIImage conform to NSCopying protocol but I have absolutely no idea on where to start to achieve this.
Do you have any pointer to help me?
Thanks in advance
- (id) copyWithZone: (NSZone *) zone
{
return [[UIImage allocWithZone: zone] initWithCGImage: self.CGImage];
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With