修改系统UITableViewCell的ImageView大小

代码如下:

CGSize itemSize = CGSizeMake(63, 63);

UIGraphicsBeginImageContext(itemSize);

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

[self.imageView.image drawInRect:imageRect];

self.imageView.image = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

 

posted @ 2018-08-08 15:21  chihbun  阅读(612)  评论(0编辑  收藏  举报