![](/img/trans.png)
[英]How to change radio button selected image and corresponding text in Swift iOS
[英]Why does a selected image overflow the button border in swift?
將按鈕剪輯設置為邊界 true
button.clipsToBounds = true
Select clipToBounds 從屬性部分,或添加button.clipsToBounds = true
。 也嘗試使用Autofit
。 它也可以在 storyboard 的attribute
部分中找到。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.