Why UIImage copyWithZone error before iOS4.1

Discussion in 'iOS Programming' started by mikezang, Jan 28, 2011.

  1. mikezang macrumors 6502a


    May 22, 2010
    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?
  2. ulbador macrumors 68000


    Feb 11, 2010
    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)

Share This Page