UIImageView居中裁剪显示

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

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