开发者

Is it possible to load/save the whole structure of plist in setting bundle using NSUserDefaults

开发者 https://www.devze.com 2023-01-14 22:20 出处:网络
I know it can use NSDictionary to load and save whole plist file on iphone document directory with its structure.

I know it can use NSDictionary to load and save whole plist file on iphone document directory with its structure.

But is it possible to load/save the whole structure of plist in setting bundle u开发者_如何学JAVAsing NSUserDefaults?


I'm pretty sure the following works for saving arrays in NSUserDefaults so it should work fine for a NSDictionary

    [[NSUserDefaults standardUserDefaults] setObject:dictionary forKey:@"Dictionary"];

Hope that helps

0

精彩评论

暂无评论...
验证码 换一张
取 消