当加载我的 .Xib 文件时 UITableViewCell
被黑色背景色填充,为此,我正在使用
cell.contentView.backGroundColor = [UIColor blackColor]
但在 UITableViewCell
中,一个具有“自定义”按钮类型的 UIButton
是以编程方式生成的
所以 UIButton
覆盖的区域是不透明
(或者单元格背景 - 黑色不显示),它是白色,,,
我想制作具有透明背景的UIButton
我该怎么做?
最佳答案
UIButton *button;
button.backgroundColor = [UIColor clearColor];
关于iphone - 如何在 UITableView Cell 中制作透明的 UIButton,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7659839/