iOS透明UIButton实现方法
程序员文章站
2022-07-15 16:42:29
...
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIButton *sbutton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
sbutton.backgroundColor = [UIColor clearColor];
[sbutton addTarget:self action:@selector(changename) forControlEvents:UIControlEventTouchUpInside];
return sbutton;
}
{
UIButton *sbutton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
sbutton.backgroundColor = [UIColor clearColor];
[sbutton addTarget:self action:@selector(changename) forControlEvents:UIControlEventTouchUpInside];
return sbutton;
}
上一篇: UIView 与 UITableView
下一篇: 下载网络文件到SD卡上