btn边框及颜色
[box.actionButton.layersetMasksToBounds:YES];[box.actionButton.layersetCornerRadius:10.0];//设置矩形四个圆角半径//边框宽度[box.actionButton.layersetBorderWidth:1.0];//设置边框颜色有两种方法:第一种如下:CGColorSpaceRefcolorSpace=CGColorSpaceCreateDeviceRGB();CGColorRefcolorref=CGColorCreate(colorSpace,(CGFloat[]){0,0,0,1});[box.actionButton.layersetBorderColor:colorref];//边框颜色//第二种方法如下://_testButton.layer.borderColor=[UIColorgrayColor].CGColor;
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。