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 添加笔画?我想创建与向形状添加笔触时在 Photoshop 中获得的相同效果(如轮廓)
使用按钮的 layer.width 属性,您可以在浮点值中给出宽度。按钮有一个名为 layer 的属性。