标签:io color sp on bs cti ad ef as
[box.actionButton.layer setMasksToBounds:YES];
[box.actionButton.layer setCornerRadius:10.0]; //设置矩形四个圆角半径
//边框宽度
[box.actionButton.layer setBorderWidth:1.0];
//边框颜色
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGColorRef colorref = CGColorCreate(colorSpace,(CGFloat[]){ 0, 0, 0, 1 });
[box.actionButton.layer setBorderColor:colorref];//边框颜色
标签:io color sp on bs cti ad ef as
原文地址:http://www.cnblogs.com/wangzhoabin/p/4151562.html