I am working on an student budget application. And when user add new expense, label which represent sum of all expenses, should update, but it doesn't.
float currentValue = [self.total floatValue];
self.total = [NSNumber numberWithFloat:(currentValue + amountValue)];
self.label.text = [NSString stringWithFormat:@"Razem: %@", total];
In debuger total has a proper value.
Of course when I type something like this
self.label.text = [NSString stringWithFormat:@"something different"];
label changed his content.
EDIT.
I've changed code:
self.label.text = [NSString stringWithFormat:@"Razem: %@", [total stringValue]];
but it updates only once. I've recorded this: YT