【发布时间】:2015-10-13 16:20:14
【问题描述】:
在一个非常基本的应用程序中,我有 2 个 ViewController,我们称它们为 ViewController 和 SettingsViewController。
ViewController 上的“设置”按钮将用户引导至 SettingsViewController
在 SettingsViewController 中,用户可以使用或不使用 UIDatePicker 设置时间戳,然后点击“完成”以继续返回 ViewController
现在当用户再次返回 SettingsViewController 时,我试图确保上次访问此 VC 的数据仍然相关,但我发现 VC 是新的并且没有任何记忆!这是否意味着我必须在用户离开 SettingsViewController 之前存储我需要记住的所有内容?
【问题讨论】:
标签: ios iphone swift uiviewcontroller swift2