3
완성 된 블록에서 "self"를 사용하면 충돌이 발생합니다.신속한 SDWebImage 충돌
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
})
}
})
감사합니다. ColinE, 내 프로젝트에서 SDWebImage (3.7.1, 최신 버전)를 사용합니다. 나는 github에 버그를 제기. – ZYiOS