How to return to the last screen view?
If I have multiple parent views with a single child view, is there any good way to return to the caller parent view from a child view?
My current implementation is to store the current parent view in the model.cpp class before transitioning to child view. When a button (i.e. done) is clicked from the child view, it would then check the last parent view through the model.cpp getLastParentView() and the child view will transition to parent view.
Lastly, the parent view would go through the necessary initialization and behave like any ordinary screen switching.
I wonder if there is a better way to do this, thanks in advance everyone!
