ios - 从另一个应用程序 ios 链接到设置应用程序的声音部分

标签 ios objective-c

我知道之前也有人问过类似的问题,关于如何从另一个应用程序打开设置应用程序。然而,这似乎只允许您跳转到设置应用程序中发件人应用程序的隐私设置。我需要一种方法直接跳转到设置应用程序的声音设置菜单。这可以在 Objective-C 中具体完成吗?我对快速解决方案不感兴趣。谢谢。

最佳答案

我认为“设置”应用程序内的小节是私有(private)的。正如我对此进行了一些研究,如果您提交应用程序进行审核,苹果会拒绝。示例案例:

Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change. Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.

Next Steps

To resolve this issue, please revise your app to provide the associated functionality using public APIs or remove the functionality using the "prefs:root" or "App-Prefs:root" URL scheme.

If there are no alternatives for providing the functionality your app requires, you can file an enhancement request.

这意味着您只能使用如下所示的主要部分。

UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!, options: [:], completionHandler: nil)

关于ios - 从另一个应用程序 ios 链接到设置应用程序的声音部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56799397/

相关文章:

ios - 无法在表格 View 单元格中显示数据

iOS WiFi网络切换

ios - 使 UIViewController 成为单例?

objective-c - 创建可编写脚本的 Cocoa 应用程序的简单教程(脚本桥)

iphone - UIButton的addtarget : not called after touch it!

ios - 在iOS上,有没有办法每秒刷新60帧以上?

iphone - 如何从 Xcode 获取 ipa 文件以在真实设备中运行 iPhone 应用程序?

iphone - 卡在 NSUserDefaults 上

ios - 如何在 Swift 中使用 CMAltitudeHandler?

iphone - 如何将类的属性作为 Objective-C 中方法的参数传递