问题描述
我有 UIImageView 圆角矩形形状,如您在图片中看到的那样用颜色突出显示。我想用图像完全填充 UIImageview。
解决方法
使用 imageView contentMode
imageView.contentMode = .scaleAspectFill
我有 UIImageView 圆角矩形形状,如您在图片中看到的那样用颜色突出显示。我想用图像完全填充 UIImageview。
使用 imageView contentMode
imageView.contentMode = .scaleAspectFill