打开设置应用程序
以下内容是否会被视为私有 API 使用?经过谷歌搜索后,我发现了许多相互矛盾的报道。
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];
还有人在设置应用程序中拥有有效网址列表吗?例如:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://notifications"]];
将打开设置应用程序的通知页面。
Would the following be considered as private API use? After googling I have found many conflicting reports.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];
Also does anyone have a list of valid urls within the settings application? For example:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://notifications"]];
will open the notifications page of the settings application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经找到了我自己问题的答案。
iOS5支持。
URL 方案可以在这里找到:http://maniacdev.com/2011/11/tutorial-using-url-schemes-to-open-the-settings-app-to-a-specific-page-in-ios-5/
I have found the answer to my own question.
It is supported in iOS5.
URL Schemes can be found here: http://maniacdev.com/2011/11/tutorial-using-url-schemes-to-open-the-settings-app-to-a-specific-page-in-ios-5/