문제

What I'm trying to figure out is how to automatically save and load data using NSUserDefaults. I know how to do save and load data if I have save and load button, using NSUserDefault. I'm not sure which of the methods I should be using in the AppDelegate, if that is right?

Can somebody point me help me, please?

Thanks

Sam x.

도움이 되었습니까?

해결책

Depends on when (at which point in the lifecycle of the application) you want the loading and saving to happen. The earliest point for loading though I think is when applicationDidFinishLaunching is called.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top