AFNetworking自带的解析图片的方法
首先要导入头文件
#import "UIKit+AFNetworking.h"
方法如下:
[personImageView setImageWithURL:[NSURL URLWithString:imageUrlString] placeholderImage:[UIImage imageNamed:@"redBearPortrait"]];
首先要导入头文件
#import "UIKit+AFNetworking.h"
方法如下:
[personImageView setImageWithURL:[NSURL URLWithString:imageUrlString] placeholderImage:[UIImage imageNamed:@"redBearPortrait"]];