iOS跳转系统设置的方法审核不通过

Guideline 2.5.1 - Performance - Software Requirements

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](https://developer.apple.com/bugreporter/).

发布应用被拒。原因是使用了"prefs:root" 或 "App-Prefs:root" 的非公共URL方案。

解决办法:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];

修改成

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

只能打开设置,不能直接到具体功能的设置页面。

你可能感兴趣的:(iOS跳转系统设置的方法审核不通过)