我尝试将 UITableView Footerview backgroundcolor 设置为 clearColor 但它保持白色,任何 其他颜色效果很好,有什么想法吗?
_footerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, _incredientsTable.frame.size.width, 60)];
[_footerView setBackgroundColor:[UIColor clearColor]];
谢谢。
最佳答案
问自己这些问题:
您希望通过页脚 View 看到什么?是 table 的背景吗?底层 View Controller 的 View ?在后一种情况下,您和您希望在页脚 View 下可见的对象之间有更多 View 。那至少是 UITable 本身,可能是 self.view 的背景(在大多数情况下但不是全部是表格)
关于ios - UITableView Footer 查看背景颜色以清除颜色不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17270829/