I am a complete iOS development newbie. I am working on cre开发者_StackOverflow社区ating an SDK which will store preferences by the user. I need for the root.plist file be inside the SDK if possible, and to write methods for the settings from the actual app.
The Foundation.framework already has a class that manages saving native Cocoa objects to a property list, called NSUserDefaults.
NSUserDefaults Class Reference
It allows you to save NSStrings, NSNumbers, NSArrays, NSDictionarys, NSData, etc. without having to worry about serializing the objects, as long as everything is either a native Cocoa object, or pre-serialized to NSData.
If this is what you are trying to do, then I would find something else you can include in your library that would differentiate it from this class; otherwise you would just be replicating existing classes.
精彩评论