Sdwebimage is a third-party framework for loading network pictures, and some other good features
Use steps
Https://github.com/rs/SDWebImage
Download after decompression, decompression is
Then drag the Sdwebimage folder in the file to your project and use it in your project
Working with Frames
#import "sdwebimage/uiimageview+webcache.h"//Introduction header file-(UITableViewCell*) TableView: (UITableView*) TableView Cellforrowatindexpath: (Nsindexpath*) Indexpath {Static NSString*id = @"Video";UITableViewCell*cell = [TableView dequeuereusablecellwithidentifier:id];if(Cell = =Nil) {cell = [[UITableViewCellAlloc] Initwithstyle:uitableviewcellstylesubtitle Reuseidentifier:id]; }NSString*imageurl = [NSStringstringwithformat:@"http://192.168.1.101:8080/tfserver/%@", video. Image];//Use this framework[Cell. ImageViewsetimagewithurl:[NsurlUrlwithstring:imageurl] placeholderimage:[UIImageimagenamed:@"4.jpg"]];returnCell;}
"iOS development" about the use of third-party framework sdwebimage for picture loading