Как получить расширенный заголовок табличного представления

У меня есть сгруппированныеUITableView, Теперь, в отличие от заголовка представления таблицы по умолчанию, мой заголовок должен бытьnext для отдельных клеток:

Стандарт:

[Header Cell]
[Item 1]
[Item 2]

Что мне нужно

+-------+----------------+
|       |  Item 1a       |
|  h1   +----------------+
|       |  Item 1b       |
+ - - - +----------------+
|          Item 1c       |
+------------------------+
|       |  Item 2a       |
|  h2   +----------------+
|       |  Item 2b       |
+------------------------+
|       |  Item 3a       |
|  h3   +----------------+
|       |  -placeholder- |
+-------+----------------+

Некоторые замечания:

Group H1 has three items Group H2 has two items Group H3 has just one item (I have to insert a placeholder cell so that the header cell can have the full height of two item-cells When the user scrolls the list then the header should be pushed upwards that the two header-cells don't overlap.

Задача здесь - высота ячейки заголовка:

If I set the height to 0 and uncheck clip subviews then that header cell is shown but does not get pushed away at the correct position. If I set the height of the header cell to the visual height then there is an empty space of that height across the whole width of the table which I don't want...

Update 1: Я просто понял, что Apple использует такой список для поиска (сгруппированы по сообщениям, почте, контактам, календарям и т. Д.). Так что мой вопрос в основном заключается в том, как я могу настроитьUITableView чтобы вести себя как сгруппированные результаты поиска ... :-)

http://6.mshcdn.com/wp-content/uploads/2010/08/2photo.jpg

Ответы на вопрос(1)

Ваш ответ на вопрос