I want to define a static tableview with one dynamic section Is that possible?
section 0 shall be static, the lables are wired in xcode with the outlets.
section 1 shall be dynamic
I tried this, but I don´t know what cell I shall return for the static part.
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;
}
EDIT 1; now I tried:
case 0: return [super tableView:tableView cellForRowAtIndexPath:indexPath];
but got:
*** 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:'