1
我的tableView
中只有一个cell
。这cell
有fixed height
。在这个cell
下我有很多空的单元格,实际上不是单元格,并且是默认创建的。所有这些细胞都有separator
所以在不难看出高度。如何更改tableView页脚中空单元格的高度?
如何使这些非单元格(在tableView
页脚中)的高度不同于第一个cell
的高度?
我试着使用heightForRowAtIndexPath
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
if indexPath.row == 0 {
return 140.0
}
return 70.0
}
,但我看到它被称为唯一真正的细胞,而不是tableView
脚注单元。