// 例: 给按扭UIButton *_radioButton设置圆角:
_radioButton.layer.borderWidth = 1.f; // 设置边框宽度
_radioButton.layer.borderColor = [[UIColoryellowColor] CGColor]; // 设置边框颜色
_radioButton.layer.masksToBounds = YES; // 裁剪
_radioButton.layer.cornerRadius = 10.f; // 设置圆形弧度 设置圆的话,该值为控件的宽或者高的一半