+ [UIImage sd_imageWithData:]:发送给类的无法识别的选择器

时间:2014-06-18 12:41:07

标签: objective-c cocoapods sdwebimage

SDWebImage在过去的6个多月里一直运行良好,我刚开始使用带有SDWebImage的Cocoapods,之前已经将该库静态链接到我的iOS项目中。

今天切换到Cocoapods后,我的应用程序崩溃了这个erorr:

  

+ [UIImage sd_imageWithData:]:无法识别的选择器发送到类0x25532cc

我所做的唯一代码更新是SDWebImageDownloader | downloadImageWithURL所以项目编译(SDWebImage有一个typedef更新)来使用NSInteger:

此前:

downloadImageWithURL: url
             options: 0
            progress: ^(NSUInteger receivedSize, long long expectedSize) {  }
           completed: ^(UIImage *image, NSData *data, NSError *error, BOOL finished) {

更新至:

downloadImageWithURL: url
             options: 0
            progress: ^(NSInteger receivedSize, NSInteger expectedSize) {  }
           completed: ^(UIImage *image, NSData *data, NSError *error, BOOL finished) {

任何可能导致它的想法?它是如何修复的?

谢谢!

0 个答案:

没有答案