кажется, если я использую «я» в завершенном блоке, он рухнет.
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
})
}
})