ios关于layer的一些常用属性

UILabel * labb = 。。。

//set the border of labb

labb.layer.borderWidth = 1;

labb.layer.borderColor = [UIColor lightGrayColor].CGColor;

 

//创建圆角图片

fixLab.layer.masksToBounds = YES;

fixLab.layer.cornerRadius = fixLab.frame.size.height*0.1;

 

[self.view addSubview:labb];

 

posted on 2015-07-02 10:51  🌞Bob  阅读(234)  评论(0编辑  收藏  举报

导航