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?

4条回答
贪生不怕死
2楼-- · 2020-02-12 14:58

It is possible now in iOS 8

if (&UIApplicationOpenSettingsURLString != NULL)
  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
查看更多
Animai°情兽
3楼-- · 2020-02-12 15:01

You can use this on iOS 5.0 - 5.0.1.

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];
查看更多
我命由我不由天
4楼-- · 2020-02-12 15:11

They have to go through the Settings app.

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

查看更多
Emotional °昔
5楼-- · 2020-02-12 15:21

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

查看更多
登录 后发表回答