简体   繁体   中英

how can I reset an iOS app to it's initial state when the user logs out

Is there a simple way for a user to restore an iOS app to it's original state on the device when the user signs out of the app?

I am currently manually deleting all the coreData objects and dismissing all viewControllers and clearing NSUserDefaults.

What I want to achieve is exactly the app state when the user first downloads and interacts with it. Is there a simpler way to do this?

没有任何神奇的步骤可以完成您想要的操作,您必须手动清除已设置的所有内容,还可以搜索实现此目的的最佳方法,例如,可以删除所有内容,而不是一键删除userdefauts键1线

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