App prefs in iOS settings app?
Unsolved
Mobile and Embedded
-
wrote on 27 Aug 2017, 17:08 last edited by patrickkidd
Is there a way to add settings for my app to the iOS System settings app? Or do I need to do this with native code?
-
wrote on 27 Aug 2017, 17:34 last edited by
Hi,
All you need to add your app to iOS settings is to create a special bundle from Xcode.
- Open Xcode app.
- File->New->New File
- Select iOS tab and find section "Resources".
- Select "Settings Bundle" template.
- Add settings to your bundle and save it to your Qt project folder.
In your project pro file a next line:
app_launch_images.files = $$files($$PWD/Settings.bundle) QMAKE_BUNDLE_DATA += app_launch_images
In iOS you can use this settings bundle with NSUserDefaults class.
For this I'm using objective-c code. So on this step you will need to create a bridge class which will use objective-c code.
1/2