What is the best way to restore the state of ViewController

后端 未结 2 1074
灰色年华
灰色年华 2021-01-15 21:20

I would like to ask some suggestion about how to restore a viewControllers state. Like in the app called \"Pic Collage\" when you create a card and save it and later restore

2条回答
  •  深忆病人
    2021-01-15 21:22

    If you are supporting iOS 6 and above, take a look at State Preservation and Restoration. Even if you have to support older versions of iOS the documentation will guide you on when and how restoration can be achieved and the things you need to consider.

提交回复
热议问题