设置xib中控件的圆角
2016-09-02 本文已影响0人
Billy_W
在xib中设置的控件想使它变成圆角除了利用控件属性进行设置以外,还可以在xib中进行设置。
1.选中控件选择Show the Identity inspector
![](https://img.haomeiwen.com/i2791656/4b29ea61af113558.png)
2.在User Defined Runtime AttrIbutes中点击“+”
在Key Path下写“layer.cornerRadius”
在Type下选择“Number”
在Value下写入控件圆角需要设置的值
![](https://img.haomeiwen.com/i2791656/003382f68be99f51.png)
就像这样。
这样这个控件的圆角属性就设置好了。