现在的位置: 首页 > 综合 > 正文

UIView 圆形边框

2018年02月02日 ⁄ 综合 ⁄ 共 293字 ⁄ 字号 评论关闭
UIView *bfPanel = [[UIView alloc]initWithFrame:CGRectMake(x, y, width, height)];  
bfPanel.layer.masksToBounds = YES;  
bfPanel.layer.borderWidth  =1;  
bfPanel.layer.cornerRadius = 10;  
bfPanel.layer.borderColor= [[UIColor colorWithRed:0.52 green:0.09 blue:0.07 alpha:1] CGColor];  
[mainView addSubview:bfPanel];  
y +=height+10;  

【上篇】
【下篇】

抱歉!评论已关闭.