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

iOS开发之设置UIView边框颜色及边线厚度以及圆角及弧度

2014-07-23 11:32 405 查看
- (void)setViewLayer{
//边框
View.layer.borderColor = [UIColor colorWithRed:205/255.0 green:211/255.0 blue:213/255.0 alpha:1.0].CGColor;//#cdd3d5
View.layer.borderWidth = 1.0f;
// 设置登录按钮圆角半径
View.layer.masksToBounds = YES;
View.layer.cornerRadius = 2;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: