Hi, I want to have a cell (age) that is calculated when a record is added or changed.
age is currentYear - birthYear (roughly)
I was thinking of something like this:
SCTextFieldCell *ageCell = (SCTextFieldCell *)[objectSection cellForPropertyName:@"age"]; (for changes) SCTextFieldCell *yearCell = (SCTextFieldCell *)[objectSection cellForPropertyName:@"year"]; double year = [yearCell.textField.text doubleValue]; double age = year - birthYear; ageCell.textField.text = [NSString stringWithFormat:@"%f", age]; }
Can someone point me in the right direction please...