????????//1、首先對(duì)image付值
? ? ? ? cell.imageView.image = image;
? ? ? ? //2、調(diào)整大小
? ? ? ? CGSize itemSize = CGSizeMake(56,56);
? ? ? ? UIGraphicsBeginImageContextWithOptions(itemSize,NO, UIScreen.mainScreen.scale);
? ? ? ? CGRect imageRect = CGRectMake(0.0,0.0, itemSize.width, itemSize.height);
? ? ? ? [cell.imageView.image drawInRect:imageRect];
? ? ? ? cell.imageView.image = UIGraphicsGetImageFromCurrentImageContext();
? ? ? ? UIGraphicsEndImageContext();