San*_*Ray 10
可能有两个选项可以解决问题。
将内容模式设置为.scaleAspectFit并且图像不应超出范围:
myButton.imageView?.contentMode = .scaleAspectFit
调整图像插入:
myLikesButton.imageEdgeInsets = UIEdgeInsetsMake(top, left, bottom, right)
| 归档时间: |
|
| 查看次数: |
18427 次 |
| 最近记录: |