Connect inappsettings to a viewcontroller - ios

I'm creating an app where i need to create own app settings. These settings needs to be shown in a viewcontroller. i've created an settings.bundle how can i associate this with a viewcontroller? i've tried to follow different tutorials, but all cases they are being show under the iphone settings. if this is not possible how can i then achieve this?

Assuming you have implemented working tutorial code correctly, you will need to delete your app and reinstall it in order to access data from the settings bundle. Hope this helps!
Note: This is necessary if settings.bundle has just been added to your target.

Related

How to put file manually to iOS persistentDataPath?

{to the point}
So I want to create some Quiz Game on Unity that the questions data using external file (in this case I using JSON). I want to keep my questions data can access/edit by myself separately. And then I just have to copy-paste it manually to persistentDataPath in iOS but I don't know how to do it. Anyone can help me?
Note : I don't wanna use any script/code to do it, just manually Copy-Paste it...\
thank you,
You need to set "Application Supports iTunes file sharing" key in the info plist of your app in Xcode.
...and then you can access persistentDataPath through iTunes.
(In the example screenshot below I copied midi.csv from my MacBook to excel in my iPad)
To make it more comfy add a PostProcessBuild-script like this one (gist).
It applies the setting after each build, so no manual steps.

React-Native: How it can be added buttons in the application settings iOS?

I am trying to add some debug information in my application data when you go to Settings -> Your app. I will like to add informations about the application version and a button to delete the application data.
I could not find informations to help me making it. Is it a way to make it?
This has nothing to do with react-native it self.
You have to follow this guide in order to do so.
Its a bunch of configs in plist files that will enable you to do so.
https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/UserDefaults/Preferences/Preferences.html
After that you use this API to get/set values from keys
https://facebook.github.io/react-native/docs/settings.html

Open iPhone/iPad settings from my app

In my app I have some settings that are accessible within the Setting native app... a normal Settings.bundle file.
The question is "is possible from my application open Settings app to the settings page of my app to facilitate the user experience?"
Thanks.
I didn't realise this wasn't possible as the other answers/comments indicate. But I've been using InAppSettingsKit to mimic that behaviour anyway.
It reads from your Settings.bundle and creates a view controller based on the information.

How do I add a plist file to Setting.bundle programmatically?

I am trying to add a plist file to the Settings.bundle in my iOS project programmatically. How would I go about doing this?
I used Apple's API to find where to put a created plist file to see if the Settings.bundle would check there for a plist file but it doesn't recognize it and the child pane goes to a blank screen instead of showing the settings.
The reason for this is based on the user logging in to my app I want to have different settings show in the Settings App
You don't. Settings.bundle is supposed to be created at compile time, and is fixed (as well as signed as part of the application build process.)
See the Settings.bundle documentation which explicitly states (emphasis added):
A Settings bundle has the name Settings.bundle and resides in the top-level directory of your app’s bundle.
The emphasized part is what tells me you can't put the bundle anywhere else. This answer confirms what I just said.
Conditionally displayed settings are also not possible.
I don't think you can. The OS handles that independently, and you aren't allowed to run any code to affect it.
Instead, you are going to want to offer a settings screen within your app that allows full control over the presentation and function.

Display Settings.bundle Root.plist in a view inside the app

I would like to let the user access the settings for the app both from iOS Settings app and from the app itself.
Right now I am using Settings.bundle to access the settings from the Settings app, is there an easy way to implement a controller inside the app to access the same settings?
As a side question, is there an easy way to implement a settings-like view starting from a plist?
There are a few Open Source projects to do just this. About a year ago I evaluated all the ones I could find and ended up using InAppSettingsKit. Second place was mySettings, but it looks as though that is no longer being maintained.

Resources