ios 固定系统cell.imageView.image的大小

UIImage * image = [UIImage imageWithData:imageData];


CGSize itemSize = CGSizeMake(90, 90);

UIGraphicsBeginImageContextWithOptions(itemSize, NO ,0.0);

CGRect imageRect = CGRectMake(0.0, 0.0, itemSize.width, itemSize.height);

[image drawInRect:imageRect];


cell.imageView.image = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

你可能感兴趣的:(ios 固定系统cell.imageView.image的大小)