Button描边

self.topView.layer.masksToBounds = YES;//设置可描边
self.layer.conerRadius = 10;//设置圆角
[self.topView.layer setBorderWidth:1];//设置描边宽度
self.topView.layer.borderColor = COLOR(230, 230, 230, 1).CGColor;//设置描边颜色

你可能感兴趣的:(Button描边)