UIButton
是否有可能有比 UIButton
frame
更大的高亮图像(我想保留 UIButton 的
frame
以便它是 UIControlStateNormal
图像的大小,而不是 UIControlStateHighlight
图像的大小。
最佳答案
是的,这是可能的:
button.imageView?.contentMode = .center
button.imageView?.clipsToBounds = false
关于ios - 具有大于框架的突出显示图像的 UIButton,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55897617/