Latest 1.0.2
Homepage https://github.com/emsihyo/RetriableSDWebImage
License MIT
Platforms ios 8.0, watchos 2.0, tvos 9.0, osx 10.9, requires ARC
Dependencies Retriable, SDWebImage
Authors

License MIT
Build Status
Carthage compatible
Pod Version
Pod Platform

Retriable SDWebImage

Cocoapods

Add the following to your project’s Podfile:

pod 'RetriableSDWebImage'

Carthage

Add the following to your project’s Cartfile:

github "emsihyo/RetriableSDWebImage"

Example

    [imageView sd_setImageWithURL:[NSURL URLWithString:@"https://nr-platform.s3.amazonaws.com/uploads/platform/published_extension/branding_icon/275/AmazonS3.png"] placeholderImage:nil options:0 progress:nil completed:nil retryAfter:^NSTimeInterval( NSInteger currentRetryTime, NSError *latestError) {
        if (![latestError.domain isEqualToString:NSURLErrorDomain]) return 0;
        switch (latestError.code) {
            case NSURLErrorTimedOut:
            case NSURLErrorNetworkConnectionLost:
            case NSURLErrorNotConnectedToInternet: return 5;
            default: return 0;
        }
    }];

Latest podspec

{
    "name": "RetriableSDWebImage",
    "version": "1.0.2",
    "license": "MIT",
    "summary": "Retriable SDWebImage",
    "homepage": "https://github.com/emsihyo/RetriableSDWebImage",
    "authors": {
        "emsihyo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/emsihyo/RetriableSDWebImage.git",
        "tag": "1.0.2"
    },
    "description": "Retriable SDWebImage.",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0",
        "watchos": "2.0",
        "tvos": "9.0",
        "osx": "10.9"
    },
    "ios": {
        "source_files": "RetriableSDWebImage/*.{h,m}"
    },
    "dependencies": {
        "Retriable": [],
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This