Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将圆形矩形按钮拖入笔尖并为按钮设置背景图像。然而,图像并没有填满整个空间,它在按钮的两侧留下了一个狭窄的边框。我如何摆脱这个边界?谢谢。
如果要为 使用自定义背景图像UIButton,则应将按钮类型更改为UIButtonTypeCustom而不是UIButtonTypeRoundedRect。
UIButton
UIButtonTypeCustom
UIButtonTypeRoundedRect
(您也可以在Interface Builder中执行此操作)