iOS - How to keep state of View Controller A after switching to View
Controller B?
I'm making an application in which I need the map of View Controller A to
be in the same state after switching to View Controller B. However, I do
not know how to switch the view to see the same state? Meaning when I
switch back to View Controller A from View Controller B, I'm under the
impression that I'm required to make a new instance of View Controller A,
and then push that View Controller. However, this means that I lose all of
my instance data from the first time it loads. How do I keep the data from
the first time I'm in that view?
No comments:
Post a Comment