JJSaccolo / UIActivityIndicator-for-SDWebImage

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

How can i intergrate with SDWebImage? #16

Open dzpt opened 9 years ago

dzpt commented 9 years ago

I already intergrate it on sdwebimage, i'm using it for load grid files. Can i have percentage loading indicator for large file?

mythodeia commented 9 years ago

@Tom29 Hi i think this feature is something you can do on the progress block of the method you use to get your image. You can use this method - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock usingActivityIndicatorStyle:(UIActivityIndicatorViewStyle)activityStyle and use the progress block to make your own custom % loading indicator