IOS网络同步请求
//1.目标地址
NSString *url_string = @"http://b33.photo.store.qq.com/psu?/05ded9dc-1001-4be2-b975-13e05bbe8a74/YQttQ6aq57DdFXI99mxZ1KO.MbUmc5tp7ltg8Vi1E4A!/b/YQEyvBMZvgAAYvh1zgrXSAAA&a=33&b=18&bo=4AGAAgAAAAABAEQ!&rf=photoDetail/psu.jpeg";
//2.构造网络地址
NSURL *url = [NSURL URLWithString:url_string];
//3.构造网络请求
NSURLRequest *request = [NSURLRequestrequestWithURL:url];
//4.构造缓冲区,把数据放进去
NSData *data = [NSURLConnectionsendSynchronousRequest:request returningResponse:nilerror:nil];
//5.把缓冲区的东西放进image里
UIImage *image = [[UIImagealloc] initWithData:data];
//6.设置图片的布局
self.imageView.contentMode = UIViewContentModeRedraw;
//7.将网络请求的数据,显示到imageView里
self.imageView.image = image;