iPhone: Opening Application Preferences Panel From

2020-02-12 14:43发布

问题:

Is it possible to open the application's preferences pane directly from the app, or will users be forced to to go through the Settings app?

回答1:

They have to go through the Settings app.

An alternative is for you to replicate the settings within your application.



回答2:

The nicer alternative is to use InAppSettingsKit which does the replication for you. Apple wants everybody to use the Settings app though.



回答3:

You can use this on iOS 5.0 - 5.0.1.

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];


回答4:

It is possible now in iOS 8

if (&UIApplicationOpenSettingsURLString != NULL)
  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];