JJSaccolo / UIActivityIndicator-for-SDWebImage

The easiest way to add a UIActivityView to your SDWebImage view
MIT License
817 stars 161 forks source link

Integrate with SD WebImage #24

Closed confile closed 8 years ago

confile commented 9 years ago

You wrote:

You can use all the standard SDWebImage methods... adding the last parameter usingActivityIndicatorStyle:(UIActivityIndicatorViewStyle)activityStyle

I tried:

    cell.logoImageView.sd_setImageWithURL(logoUrl, usingActivityIndicatorStyle: UIActivityIndicatorViewStyle.Gray)

but got the error:

Cannot invoke 'sd_setImageWithURL' with an argument list of type '(NSURL, usingActivityIndicatorStyle: UIActivityIndicatorViewStyle)'
ghost commented 8 years ago

Try changing logoUrl to logoUrl!

confile commented 8 years ago

thanks