Currently this button and the logic from the VM don't remember the State set in an earlier app session. Every time the app is closed and openend the Button and State from the VM is reset to "ON".
The VM logic should consider state set in earlier sessions and initialize sensors on that state:
This should be the case already, but does not work.
The button should be initialized by checking the nervousnet state first:
call to nVM.getNervousnetState()
problem: currently it is not possible to reference the button with an outlet because it is in a dynamic cell. Possible fix idea: put Cells of TableView into static mode.
Currently this button and the logic from the VM don't remember the State set in an earlier app session. Every time the app is closed and openend the Button and State from the VM is reset to "ON".
The VM logic should consider state set in earlier sessions and initialize sensors on that state:
The button should be initialized by checking the nervousnet state first: