UIImageView居中裁剪显示

阅读更多
UIImageView *pictureImg1 = (UIImageView *)[cell viewWithTag:102 + i];
[pictureImg1 setContentScaleFactor:[[UIScreen mainScreen] scale]];
pictureImg1.contentMode =  UIViewContentModeScaleAspectFill;
pictureImg1.autoresizingMask = UIViewAutoresizingFlexibleHeight;
pictureImg1.clipsToBounds  = YES;

你可能感兴趣的:(IOS图片居中显示,图片居中,IOS图片裁剪,图片裁剪)