iPhone: Opening Application Preferences Panel From App

后端 未结 4 2153
猫巷女王i
猫巷女王i 2020-12-19 23:27

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条回答
  • 2020-12-19 23:50

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

    0 讨论(0)
  • 2020-12-19 23:56

    You can use this on iOS 5.0 - 5.0.1.

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];
    
    0 讨论(0)
  • 2020-12-19 23:57

    They have to go through the Settings app.

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

    0 讨论(0)
  • 2020-12-20 00:05

    It is possible now in iOS 8

    if (&UIApplicationOpenSettingsURLString != NULL)
      [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
    
    0 讨论(0)
提交回复
热议问题