2014/09/21

[Xcode6][Objective-C]MWPhotoBrowserが不具合を起こす件

Xcode6にしたらなぜかMWPhotoBrowserが不具合を起こしてしまう。

おそらくSDWebImageを最新にしたからだと思うのだが、Pullリクエストに

_webImageOperation = [manager downloadImageWithURL:_photoURL options:0 progress:^(NSInteger receivedSize, NSInteger expectedSize) {
                    [self fetchImageProgressWithReceivedSize:receivedSize expectedSize:expectedSize];
                } completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
                    if (error) {
                        MWLog(@"SDWebImage failed to download image: %@", error);
                    }
                    _webImageOperation = nil;
                    self.underlyingImage = image;
                    [self imageLoadingComplete];
                }];
にしてほしいと書いてあったので、コールバックの部分を
completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
にしたらなおった、一見落着、落着。

0 コメント:

コメントを投稿