uchicago-mobi / 2016-Winter-Forum

Class Forum for MPCS51030.
3 stars 0 forks source link

Open Settings from App #219

Closed aaizuss closed 8 years ago

aaizuss commented 8 years ago

I have a button to go to the settings app (specifically Wallpaper, or just the main settings screen if that isn't possible). I was able to open my app's settings using UIApplicationOpenSettingsURLString, and I found that the string to open the wallpaper settings is prefs:root=Wallpaper, but that isn't actually working.

I have a button that displays a UIAlertController, and this is my code for the OKAction (to go to settings):

screen shot 2016-03-11 at 11 28 41 pm

When I tap OK, nothing happens. At first I thought it's because you can't access the wallpaper settings in simulator (it's just not available in the settings app), so I tried testing on my iPhone, but nothing happens there either. I made the oopsController because I thought it would show up if the url didn't work, but that doesn't show up either.