UIImageView initWithCoder - unrecognized selector sent to instance… iOS 5 beta SDK

后端 未结 3 1013
情书的邮戳
情书的邮戳 2021-01-24 06:43

I\'m sorry if it has already been asked, but here comes the problem:

I\'ve recently updated my SDK to iOS 5 beta. My app builds and runs perfectly fine

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-24 06:56

    Following smith324's advice I started to browse Apple dev forums to find out if I'm doing something wrong or if there's a bug in the SDK. It turns out, that there's a nasty bug in the latest release crashing UIImages, UIActivityIndicators etc. just like in my case. Good news is, there actually is a workaround and you can find it here: https://devforums.apple.com/message/507796#507796

    Thanks everyone for your help!

    EDIT:

    If you can't access the link, this is the suggested answer:

    @implementation UIImage (initWithCoder)
    
    - (id)initWithCoder:(NSCoder *)aDecoder
    {
         return nil;
    }
    
    @end
    

提交回复
热议问题