[英]iPhone: Opening Application Preferences Panel From App
是否可以直接从应用程序打开应用程序的首选项窗格,或者是否会强制用户浏览“设置”应用程序?
It is possible now in iOS 8 现在可以在iOS 8中使用
if (&UIApplicationOpenSettingsURLString != NULL)
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
The nicer alternative is to use InAppSettingsKit which does the replication for you. 更好的选择是使用InAppSettingsKit为您进行复制。 Apple wants everybody to use the Settings app though.
Apple希望每个人都使用“设置”应用。
您可以在iOS 5.0 - 5.0.1上使用它。
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];
They have to go through the Settings app. 他们必须通过“设置”应用。
An alternative is for you to replicate the settings within your application. 另一种方法是复制应用程序中的设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.