IPhone App Settings: Settings.bundle vs plist file?
-
29-09-2019 - |
Question
I'm a bit confused. I'd like to implement some simple settings for my app. I was thinking of just creating a simple plist file. But now I see that there's something called "Settings.bundle" (that also has a plist in there but some other stuff too).
What I'm wondering, which one should I use? (I'm looking for the easiest way)
Thanks!!
Solution
I would suggest looking into NSUserDefaults to store basic app settings.
OTHER TIPS
The settings bundle is for having settings that show up in the system Settings.app. You can use a plist (or easier, NSUserDefaults, which handles the plist for you) to store settings that you change within the app itself.
See the Displaying Application Settings section in the iOS Application Programming Guide.