Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mikezang

macrumors 6502a
Original poster
May 22, 2010
938
41
Tokyo, Japan
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?
 
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)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.