George Papagiannis
George Papagiannis

Reputation: 13

UItextView save contents, after app terminates

I am new to Objective C,iOS Development(I'm using Xcode 5) and maybe this is going to be a very basic question, but i've tried hard to find an answer and all i see is very advanced stuff. I'm creating an app where the user can type down to a UITextView notes and then save them, but when the app is terminated (not just enters background) when i relaunch it everything is lost. How could i retain what the user has typed? Every help is highly appreciated. Thank You Very Much, George

Upvotes: 0

Views: 81

Answers (1)

Bogdan Somlea
Bogdan Somlea

Reputation: 624

save it in

[NSUserDefaults standardDefaults]

after that, when you start the app, retrive the info from the NSUserDefaults.

Upvotes: 0

Related Questions