我对如何从 URL 获取图像有疑问。
我努力了:
NSURL *url=[NSURL URLWithString:[NSString stringwithFormat:@"http://kenh14.vn/c102/20120715022212850/ngoc-trinh-la-model-thi-khong-nen-ngai-the-hien.chn"]];
NSURLRequest *request=[NSURLRequest requestWithURL:url];
NSURLConnection *connection=[[NSURLConnection alloc]initWithRequest:request delegate:self startImmediately:NO];
[connection start];
NSData *data=[NSURLConnection sendSynchrounousRequest:request returningResoibse:nil error:nil];
我想在UIImageView
.