Data persistence
Can---------log in directly at the next login?
Because the user name and password are lightweight data, we can use the
Nsuserdefaults
---------We look at the Web page information can also be seen when the net?
Web pages, audio, video involve the download of large files, so to read the local documents path,
plus the downloaded file name and format. NSstring *filepath =[nshomedirectory () stringbyappendingpathcomponent:@ "documents/*. TXT "];
Write the file inside. [* Writetofile:filepath Atomically:yes];
If you want to write something repeatedly to a file, read it first in the save.
------------------------------------------------------------------------------------------
Many times you will lose to yourself.
------------------------------------------------------------------------------------------
ios-Data Persistence