views:

205

answers:

1

Hello,

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

+1  A: 
- (id) copyWithZone: (NSZone *) zone
{
    return [[UIImage allocWithZone: zone] initWithCGImage: self.CGImage];
}
Costique