Learn Courses My Dashboard

How to save Stack of View Controllers?


Can somebody help me with the following question:
“How to save stack of view controllers?”

I need it for the following:
In my app user creates an advertisement.
During 5 view controllers user can add information:

  1. photo
  2. title
  3. description
  4. price
  5. address

How to give user opportunity - if he close the app - to come back to view controller №4 (for example) with all saved information for previous view controllers?

If I save info to user defaults, for example, about title and so on, and about the last opened view controller - it ok. BUT I can’t move back to previous view controller, because it is out of hierarchy.

Can somebody advice something?

Hi, R u having any issues in getting a response to your question from CWC because I am.