问题
I would like to launch a URL from the iOS Settings Bundle that would at least launch Safari when they Touched the setting.
Not sure if this is possible I couldn't find any examples of this in the Settings area with Apple or 3rd party apps. If it is not I would appreciate confirmation for this.
回答1:
You can't. Current Settings.bundle is able to only display or change values. Better check Apple docs Settings Application Schema Reference and the few available element types. Sorry.
回答2:
The Twitter Preferences show up with a link "Learn More about Twitter" to navigate to twitter.com (Safari). I could not figure out how they did it but it seems to be possible.
回答3:
I was searching for the same UI experience "a button in the settings page" to allow the user to reset some settings, I found this http://inappsettingskit.com/ .
As others said it's not possible to do in apples Settings.app, so the solution in to implement an in-app settings page, this open source project seems to make it easy. I'll update after I implement.
(I have no connection to this project)
回答4:
I am not sure if that is possible. This previous SO question Display iphone application settings within your application says something about using them within the app. See if it helps. Another SO question that can be of use Programmatically opening the settings app (iPhone)
来源:https://stackoverflow.com/questions/5959274/how-can-you-launch-a-url-from-the-ios-settings-bundle