Why UIImage copyWithZone error before iOS4.1

Discussion in 'iPhone/iPad Programming' started by mikezang, Jan 28, 2011.

  1. macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    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. macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #2
    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