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.
Related
There are many ways to start application from another application in Android.
Is it possible to start application from another application in iOS? If possible, how do I do it?
Yes, it is possible in iOS if provided the app has its URL Scheme set. If you want to open your app from any other your app you can set the custom URL Scheme in info tab of project settings.
To test, run your app, minimize and then open safari and type the URL you just set, hit GO and your app will open.
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.
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.
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.
Using Apple's Settings bundle in a project, is it possible to expose certain settings to the user only if another setting condition is met?
E.g I have a toggle switch, and if the user toggles the selection to False in the Settings application, I want to show a text box that they can fill in. If the toggle is true, I want to hide the text box.
Any help or pointers to documentation that explain this would be great.
You can find step by step instructions here: Adding a settings bundle to an iPhone App.
Edit:
I did my research and I think you cannot do this in an App Store approved app, because to reach this thing you have to change the settings.bundle file inside the application's bundle, which is not allowed in App Store approved apps.