如何在纯UITableView中修改“空”单元格的外观? [英] How can I modify the appearance of 'empty' cells in plain UITableView?
问题描述
如果您有一个单行的纯UITableView(未分组),屏幕的其余部分将填充空白或空单元格。如何更改这些空白单元格的外观? Af首先,我认为他们会有表格视图中使用的单元格的外观,但似乎他们没有。
If you have a plain (not grouped) UITableView with a single row, the rest of the screen is filled with blank or empty cells. How do you change the appearance of these blank cells? Af first, I thought they would have the appearance of the cell used in the table view but it seems they don't.
Cultured Code(Things)做了一个很好的工作修改这些单元格,但我不能立即想到一种方式来改变他们的外观。
The people from Cultured Code (Things) have done a nice job modifying these cells but I can't immediately think of a way to change their appearance.
任何提示?
推荐答案
虽然这不是你想要的,你也可以改变它只显示一个空白区域(而不是空白的单元格)表。高度为0的UIView会做到这一点。
Although it's not quite what you're looking for, you can also change it to just display a blank region (instead of blank cells) by setting a footer view on the table. A UIView of height 0 will do the trick.
这篇关于如何在纯UITableView中修改“空”单元格的外观?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!