存储路径可用NSLog打印,然后回到左面可用快捷键 shift+command+g前往到存储的文件夹
读取沙盒中存储的数据
PS 存储数据还能用单例存储
NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
[userDefault setObject:@"123" forKey:@"account"];
[userDefault setObject:@"qaz" forKey:@"passWord"];
存储完后是在Preferences文件里面
获取单例存储的数据
NSString *account = [[NSUserDefaults standardUserDefaults] objectForKey:@"account"];
NSString *passWord = [[NSUserDefaults standardUserDefaults] objectForKey:@"passWord"];