Anyway, to set values ​​in settings.bundle from APP

Is there any way to set / update values ​​in settings.bundle from your application. I read the values ​​from the settings perfectly in NSUserDefaults, but wondered if you can set the values ​​from the application.

I have a web application for which I am creating an iPhone client, and was thinking about including user account information in settings.bundle. This is normal if the user only updates the values ​​using the Apple App Preferences screens, but what if the user updated these values ​​in the web application. I wanted to get the values ​​from the Internet, and then “update” the values ​​in settings.bundle from the application.

I assume this is not possible, and maybe I need to create my own in-app settings screen? But I thought I would spend it with you first ...

+4
source share
1 answer

Here you ask two questions.

The first is if you can update the settings from the application. You assume you cannot, but you can very easily. Just use the NSUserDefault setObject:forKey: method.

If you want to make settings in the application, I would start here: How to simplify the management of application settings in the application?

+6
source

Source: https://habr.com/ru/post/1305292/


All Articles