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]];