ios - Issue Using SDWebImage in Swift -
I am trying to use SDWebImage in Swift, the file ID that is used is called UIImageView + WebCache.h
I have added it to my bridging headers
#import "UIImageView + WebCache.h" Trying to load faster in use:
var webCah = UIImageView + WebCache () and I'm reading an error message:
Unusual identifier using 'WebCatch'
I believe that it thinks that I am trying to use a uiimageview when I try to use that objective-class
I How can I tell that class right?
UIImageView + WebCatch that category is SDWebImage functionality with specific methods UIImageView Enhances you need access to defined methods on the UIImageView object.
Example code:
var imageView: UIImageView = UIImageView () / / For example, it will probably appear anywhere in your app's image view.sd_imageURL / / Or imageView.sd_cancelCurrentImageLoad to see the documents which are available, or source
Comments
Post a Comment