iandai / SDWebImageSu

Fetch security image URL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Features

  • Fetch security image URL. In order to protect image resources, instead of using a pernement image url, using a temporary security url only valid for short seconds. imageManager:fetchSecurityURL: is used to handle this situation.

How To Use

#import <SDWebImage/UIImageView+WebCache.h>
...

SDWebImageManager.sharedManager.delegate = self;

- (nullable NSURL *)imageManager:(nonnull SDWebImageManager *)imageManager fetchSecurityURL:(nullable NSURL *)imageURL {
    NSURL *tempURL = [self fetchSecurityURLMethod];
    return tempURL;
}

[imageView sd_setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"]
             placeholderImage:[UIImage imageNamed:@"placeholder.png"]];

About

Fetch security image URL.

License:MIT License


Languages

Language:Objective-C 99.3%Language:Ruby 0.7%