1. Face Questions
1> How to prevent a URL corresponding to the picture repeated download
* "Cell download Picture idea – there is a sandbox cache"
What is the default cache duration for 2> sdwebimage?
* 1 weeks
3> Sdwebimage How does the bottom layer come true?
* Class ppt "Cell download Picture ideas – there is a sandbox cache"
2.SDWebImage
1> Common methods
-(void) Sd_setimagewithurl: (nsurl *) URL placeholderimage: (UIImage *) placeholder;
-(void) Sd_setimagewithurl: (nsurl *) URL placeholderimage: (UIImage *) placeholder options: (sdwebimageoptions) options;
-(void) Sd_setimagewithurl: (nsurl *) URL placeholderimage: (UIImage *) placeholder completed: ( Sdwebimagecompletionblock) Completedblock;
-(void) Sd_setimagewithurl: (nsurl *) URL placeholderimage: (UIImage *) placeholder options: (sdwebimageoptions) options Progress: (Sdwebimagedownloaderprogressblock) Progressblock completed: (sdwebimagecompletionblock) CompletedBlock;
2> Memory Processing: When the app receives a memory warning
/**
* When the app receives a memory warning
*/
-(void) applicationdidreceivememorywarning: (uiapplication *) application
{
Sdwebimagemanager *mgr = [Sdwebimagemanager Sharedmanager];
1. Cancel the operation being downloaded
[Mgr Cancelall];
2. Clear the Memory cache
[Mgr.imagecache Clearmemory];
}
3> sdwebimageoptions
* sdwebimageretryfailed: After the download fails, it will be automatically re-downloaded
* Sdwebimagelowpriority: Automatically pauses some internal download operations while UI interaction is in progress
* sdwebimageretryfailed | Sdwebimagelowpriority: Has the above 2 functions
iOS--Image download for cell