iOS 图片 按钮 切圆角

来源:互联网 发布:视频观看软件 编辑:程序博客网 时间:2024/05/18 03:59
  handImgView.layer.masksToBounds=YES;    handImgView.layer.cornerRadius = 32.0f;

button.layer.cornerRadius = 50.0f;

  //设置边框宽度    button.layer.borderWidth = 4.0f;    //设置边框颜色    button.layer.borderColor = [UIColor purpleColor].CGColor;    //设置圆角    button.layer.cornerRadius = 50.0f;


0 0
原创粉丝点击