0
I will try to be objective, I need to save a variable that the value that is stored inside will be the text of a label and this value is changed when an input of another variable is performed. For example:
Variable balance has the value of 50.0, the user can perform an input that is saved in the recharge variable, let’s say that the value of the recharge was 70.0, so I need to be calculated to the value already existing in the variable balance and update the label, which in case would be 120.0.
I don’t have much experience with OO and I’m having a lot of difficulties, I believe I need to read first the value saved in the userdefaults of the balance variable and then increase it with the value of the recharge variable, sorry if I’m being too lay, could someone give me a direction? Because the user can perform several refills and in this the amount of the balance is changed