开发者

Is there anyway to set values in the settings.bundle from within the APP

Is there any way to set/update values in the settings.bundle from within your app. I am fine reading in values from the preferences into NSUserDefaults but was wondering whether you can set values from within the app.

I have a web-app which I am making a iPhone client开发者_Go百科 for and was thinking to include the users account details in the settings.bundle. This is fine if the user only updates the values through the Apple Application Preferences screens, but what if the user updated those values in the web app. I wanted to pull down the values from the web and then "update" the values in the settings.bundle from within the App.

I am guessing that this is not possible and that maybe I need to create my own "in-app" settings screen? But thought I would check with you all first ...


You're asking two questions here.

The first one is if you can update settings from within the application. You assume you can't, but you can quite easily. Just use NSUserDefault's setObject:forKey: method.

If you want to do in-app settings, I'd start here: How to simplify in app Application Settings management?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜