Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法弄清楚为什么空的 tableview 单元格是黑色的,如下图所示?我正在使用 Parse,PFQueryTableView 工作正常,但空单元格总是显示为黑色。有谁知道为什么会这样?
为了解决这个问题,我最终不得不在 ViewDidLoad 方法中以编程方式将 UITableView 背景颜色设置为白色:
[self.tableView setBackgroundColor:[UIColor whiteColor]];
表格视图及其单元格是清晰的,因此显示为黑色。