ios xib或storyBoard的那些小方法

今天看了一下xib里的一些小技巧,但是百度一搜的话,网上已经有人写过教程了,在这里我也就懒一下,不写那么详细了,就写一些如何百度的方法!

1、"通过KVC修改占位文字的颜色"

[textField1 setValue:[UIColor greenColor] forKeyPath:@"_placeholderLabel.textColor"];

2、如何在xib中设置圆角(ios xib设置圆角)

layer.masksToBounds

layer.cornerRadius

原文地址:https://www.cnblogs.com/shen5214444887/p/5660879.html