简体   繁体   中英

How to save and recall settings?

I'll probably get hammered for asking this, anyways, I searched and didn't find much.

In a 3D world, after the user finishes zooming, panning, rotating an object, is there a standard way to save the view settings so if

  1. program is interrupted, paused or
  2. user turns off device
  3. unexpected power outage/glitch (save system state every X minutes)

the view can be recalled?

Would the settings be saved in a plist? or shove everything in the AppDelegate?

I haven't worked with the AppDelegate much so does anyone have some sample code or can point to something on github if this is the case? a tutorial?

Thanks

获得持久存储的最简单方法是使用NSUserDefaults,但听起来你可能想要一些有助于像MagicalRecord这样的核心数据的东西

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM