SDWebImage not loading images on network toggling from offline to online

If we disconnect from network and try downloading an image and then connect back to network ,the image is not loading.It only loads when we relaunch the app.

Tagged:

Answers

  • VenkataSeshaiahVenkataSeshaiah USMember, University ✭✭

    Add options:SDWebImageOptions.RetryFailed parameter to SetImage method to to library to retry for the image once it back to network.

    SetImage (url: new NSUrl (imageUrl),
    placeholder: UIImage.FromBundle ("defaultImage.jpg"),
    options:SDWebImageOptions.RetryFailed);

Sign In or Register to comment.