//防止图片变形
//防止图片走形 (内容扩展填充固定方面。部分内容可能剪。 contents scaled to fill with fixed aspect. some portion of content may be clipped.) imageView.contentMode = UIViewContentModeScaleAspectFill; imageView.layer.masksToBounds = YES;
时间: 2024-10-09 03:41:00
//防止图片变形
//防止图片走形 (内容扩展填充固定方面。部分内容可能剪。 contents scaled to fill with fixed aspect. some portion of content may be clipped.) imageView.contentMode = UIViewContentModeScaleAspectFill; imageView.layer.masksToBounds = YES;