• 2024-09-03UIButton设置圆角和边框颜色
    UIButton*btn=[UIButtonbuttonWithType:UIButtonTypeCustom];btn.frame=CGRectMake(100,100,100,100);[self.viewaddSubview:btn];//设置曲线UIBezierPath*path=[UIBezierPathbezierPathWithRoundedRect:btn.boundsbyRoundingCorner