//由于網(wǎng)絡(luò)請(qǐng)求的圖片如果直接setImage會(huì)出現(xiàn)大小不正常的情況岳守,所以用下面方法解決這一問題
NSURL*url = [NSURLURLWithString:[_bankInfoobjectForKey:@"bank_pic"]];
UIImage*icon = [UIImageimageWithData:[NSDatadataWithContentsOfURL:url]];
CGSizeitemSize =CGSizeMake(40,40);
UIGraphicsBeginImageContextWithOptions(itemSize,NO,0.0);
CGRectimageRect =CGRectMake(0.0,0.0, itemSize.width, itemSize.height);
[icondrawInRect:imageRect];
cell.imageView.image=UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
//????????????????????????????????