【发布时间】:2012-01-04 14:38:13
【问题描述】:
我想实现一个没有节标题的分组和索引 UITableView。
我正在使用sectionIndexTitlesForTableView:(UITableView *)tableView 来返回我的标题。
我还实现了tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 并返回nil 以及tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section 并返回0.0f。
两者都不会删除节标题。不同部分之间仍有空间。
【问题讨论】:
-
所以你想让表格看起来好像只有一个部分?
-
基本上这就是我想要的,是的。
-
在这里查看我的答案。它应该可以解决您的问题。 stackoverflow.com/questions/2817308/… 将值设置为 1。
标签: iphone uitableview uikit