How to manually read from iPhone preferences?
I just wrote a few values to my user preferences using NSUserDefaults
. Is there a way I can go in and examine the persisted preference开发者_C百科s file manually (when running on the simulator) to make sure they were written properly?
See related: Easy way to see saved NSUserDefaults?
NSString *text = [[NSUserDefaults standardUserDefaults] stringForKey:@"ValueName"]; NSLog(@"%@",text);
精彩评论