SDWebImage在swift中崩溃

时间:2014-07-25 05:12:14

标签: swift sdwebimage

似乎我使用" self"在完成的块中,它会崩溃。

self.imageView.sd_setImageWithURL(MYIMAGEURL
            , placeholderImage: nil
            , options: SDWebImageOptions.RetryFailed
            , progress: {(receivedSize: Int!, expectedSize: Int!) in

            }
            , completed:{(image: UIImage?, error: NSError?, cacheType: SDImageCacheType!, imageURL: NSURL?) in
                if image {
                    UIView.transitionWithView(self.imageView
                        , duration: 0.3
                        , options: UIViewAnimationOptions.AllowUserInteraction | UIViewAnimationOptions.TransitionCrossDissolve
                        , animations: {

                        }
                        , completion: {(finished) in

                        })
                }
            })

1 个答案:

答案 0 :(得分:2)

SDWebImageModule是一个积极开发的开源组件。在这种情况下,raise a bug on GitHub要好得多。开发人员已经发布了一些fix Xcode6 and Swift issues

相关问题