开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜