方法 笔记(二)

it2022-05-05  165

//防止图片变形

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

 

转载于:https://www.cnblogs.com/longiang7510/p/5411587.html


最新回复(0)