iOS-Cell图片大小不一致问题

TableViewCell的图片大小不一致问题。

cell.imageView.image = video.image;
CGSize itemSize = CGSizeMake(80, 100);
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();
YI wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!