UIView 加边框

来源:互联网 发布:电话号码数据库购买 编辑:程序博客网 时间:2024/06/05 22:41

  

View 加边框

 UIView *view = [[UIViewalloc] initWithFrame:CGRectMake(0,0, kScreenWidth,kHeadHeight)];

    view.layer.borderWidth =1;

    view.layer.borderColor = [[UIColorcolorWithRed:210.0/255.0 green:210.0/255.0 blue:210.0/255.0 alpha:1]CGColor];

0 0