有没有办法直接查看保存到 NSUserDefaults
的内容?我想看看我的数据是否正确保存。
最佳答案
您可以将所有当前的 NSUserDefaults 打印到日志中:
只是键:
NSLog(@"%@", [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys]);
键和值:
NSLog(@"%@", [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]);
https://stackoverflow.com/questions/1676938/
相关文章:
ios - 我可以强制 UITableView 隐藏空单元格之间的分隔符吗?
objective-c - 在 Storyboard中,如何制作用于多个 Controller 的自
objective-c - 如何测试对象在 Objective-C 中属于哪个类?
objective-c - 有没有办法从 UITableView 中删除分隔线?
objective-c - registerForRemoteNotificationTypes :
ios - 如果模态 ViewController 演示样式为 UIModalPresentatio