Vote count:
0
i create a property list file in Xcode project,and write something to it,such as name and password.i use this method
NSLog(@"%d",[_account writeToFile:path atomically:YES]);
and it does return 1
2014-09-03 11:16:53.576 14-09-02-LoginAndRegister[2049:60b] 1
but next time i run in Xcode,all the data is gone.Then i try in simulator,i exit the app,then luanch it ,the data is still there. so i guess that the Xcode will clear the .APP directory .So how can i store data.
PS:i know how to use SQLite,but i want to use plist here
asked 39 secs ago
Does Xcode clear .app directory every time we run it?
Aucun commentaire:
Enregistrer un commentaire