yourTextField.layer.borderColor = [[UIColor greyColor] CGColor];
yourTextField.layer.borderWidth = 1.0;
记得include <QuartzCore/QuartzCore.h>就行
本文介绍如何使用QuartzCore框架为UITextField设置灰色边框,包括设置边框颜色和宽度的具体代码。
yourTextField.layer.borderColor = [[UIColor greyColor] CGColor];
yourTextField.layer.borderWidth = 1.0;
记得include <QuartzCore/QuartzCore.h>就行
1714
2213

被折叠的 条评论
为什么被折叠?