[英]UIButton with highlight image that is bigger than frame
UIButton
是否可以有一个大于UIButton's
frame
的突出显示图像(我想保留UIButton's
frame
以便它是UIControlStateNormal
图像的大小,而不是UIControlStateHighlight
图像的大小)。
Yes, that is possible: 是的,这是可能的:
button.imageView?.contentMode = .center
button.imageView?.clipsToBounds = false
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.