NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *helloStr = @"hello, thisi is a NSUserDefaults demo.";
[defaults setObject:helloStr forKey:@"hello_str"];
[defaults synchronize];
NSLog("%@", [defaults objectForKey@"hello_str"]);NSUserDefaults 初探
最新推荐文章于 2025-12-01 10:33:27 发布
2752

被折叠的 条评论
为什么被折叠?



