View Full Version : Why UIImage copyWithZone error before iOS4.1

Jan 28, 2011, 10:07 AM
I found if I run my app before iOS4.1, the app will shutdown with error [UIImage copyWithZone:]: unrecognized selector sent to instance.

But it is no any problem on iOS 4.2, I don't why, can you explain to me and how can I avoid it?

Jan 28, 2011, 10:54 AM
I don't think UIImage implemented NSCopying (by default) before 4.2. So, long story short, you can't without creating your own image subclass (which is how people have done it before now)