您的位置:首页 > 产品设计 > UI/UE

iphone中,在编辑文本时怎么设置UITextView的边框颜色?

2014-03-25 09:40 363 查看
加上:
#Import <QuartzCore/QuartzCore.h>
用下面的代码就行:
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
textField.layer.cornerRadius=8.0f;
textField.layer.masksToBounds=YES;
textField.layer.borderColor=[[UIColor redColor]CGColor];
textField.layer.borderWidth= 1.0f;
return YES;
}
转载:http://ask.csdn.net/questions/1836
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: