Thanks I'll try that.
Also my app is running on an iPad and so I'm using the customDetailTableViewModelForRowAtIndexPath method to generate the detailModel (like in the sample code). However when I use the removeCellAtIndex and then a reloadData its still not removing the cell.
- (SCTableViewModel *)tableViewModel:(SCTableViewModel *)tableViewModel
customDetailTableViewModelForRowAtIndexPath:(NSIndexPath *)indexPath
{
SCTableViewModel *detailModel = nil;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
detailModel = [SCTableViewModel tableViewModelWithTableView:self.detailViewController.tableView
withViewController:self.detailViewController];
SCArrayOfObjectsSection *section = (SCArrayOfObjectsSection *)[tableViewModel sectionAtIndex:indexPath.section];
NSManagedObject *managedObject = [section.items objectAtIndex:indexPath.row];
if ([managedObject isKindOfClass:[Inspection class]]) {
// Do Stuff
}
SCArrayOfObjectsSection *detailSection = (SCArrayOfObjectsSection *)[detailModel sectionAtIndex:indexPath.section];
[detailSection removeCellAtIndex:7];
[[detailModel modeledTableView] reloadData];
[self.tableView reloadData];
}
return detailModel;
}
Am I performing the reloadData on the correct tableModel ? Or does that code look wrong elsewhere ?
(Note I'm not using the Beta yet)