Включение раздела с «динамическими прототипами» в статическое представление таблицы со «статическими ячейками»

Я хочу определить статическое табличное представление с одним динамическим разделом Возможно ли это?

раздел 0 должен быть статическим, метки связаны в xcode с выходами.

Раздел 1 будет динамическим

Я пробовал это, но я не знаю, какую ячейку я верну для статической части.

static NSString *CellIdentifier = @"ItemCellBasic";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

switch (indexPath.section)
{ case 0:
    return // I don´t know what

  case 1:
    cell.textLabel =@"dynamic";
    return cell;    
}

РЕДАКТИРОВАТЬ 1; сейчас я попробовал:

case 0: return [super tableView:tableView cellForRowAtIndexPath:indexPath];

, но получил:

*** Assertion failure in -[UITableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-1912.3/UITableView.m:6072
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
9
задан mica 15 February 2012 в 21:50
поделиться