Hi Harold,
Adding cells to an SCArrayOfObjectsSection/Model must be done through their "items" array.
In the case you need to provide a custom action when this custom cell is added, you also need to implement the didSelectRowAtIndexPath method.
- (void)tableViewModel:(SCTableViewModel *)tableViewModel didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// Assuming the custom cell is at index zero
if(index.row == 0)
{
// do custom action
}
else
{
SCArrayOfObjectsSection *section = (SCArrayOfObjectsSection *)[tableViewModel sectionAtIndex:indexPath.section];
[section dispatchSelectRowAtIndexPathEvent:indexPath];
}
}
Please tell me if this works well for you Harold.