UIButton* removeBn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
removeBn.backgroundColor = [UIColor redColor];
removeBn.layer.masksToBounds = YES;
removeBn.layer.cornerRadius = 8.0;
removeBn.frame = CGRectMake(230, 30, 60, 40);
[removeBn setTitle:@"删除" forState:UIControlStateNormal];
[removeBn addTarget:self action:@selector(remove:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:addBn];
[self.view addSubview:removeBn];
iOS给UIButton设置圆角
最新推荐文章于 2022-01-07 12:08:04 发布
