图片剪切 找不失真展示
2018-05-17 本文已影响0人
梁苏珍
self.imageViewRight.contentMode = UIViewContentModeScaleAspectFill;
// self.imageViewRight.clipsToBounds = YES;//设置这个属性为YES就可以了,默认是NO;
有下面的话 可以不用上面那一行
[self.imageViewRight.layer setMasksToBounds:YES];
[self.imageViewRight.layer setCornerRadius:5];