网站首页
编程语言
数据库
系统相关
其他分享
编程问答
CAShapeLayer
2024-09-03
UIButton设置圆角和边框颜色
UIButton*btn=[UIButtonbuttonWithType:UIButtonTypeCustom];btn.frame=CGRectMake(100,100,100,100);[self.viewaddSubview:btn];//设置曲线UIBezierPath*path=[UIBezierPathbezierPathWithRoundedRect:btn.boundsbyRoundingCorner