I was in the process of migrating STV 3.x to STV 5.x. So for that I moved all my delegates methods to actions.
Everything went smooth, thanks to Tarek ;-)
But I still have a last issue on "updating a field". I need to process a numerical value (convert to a specific unit depending on user preferences) before displaying it on the cell.
With STV3.x it was working great. On STV5.x I put my 5 lines of code inside the corresponding action, the processing of the "new value" is working ok, but the display is not updating accordingly (user still see the current value - without the unit conversion).
Someone has a clue ?
measuresSection.sectionActions.detailModelWillPresent = ^(SCTableViewSection *section, SCTableViewModel *detailModel, NSIndexPath *indexPath)
SCTableViewCell *myCell = [self.tableViewModel cellAtIndexPath:indexPath];
Measure *myObject = (Measure *)myCell.boundObject;
double current_val=[myObject.value doubleValue];
double new_val=... // do the processing