[modify]: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.
Specifically, your app uses the following non-public URL scheme:
-app-prefs:root=wifi
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.
————————————————
问题修复
This commit is contained in:
一只会编程的狮子 2019-10-24 21:44:32 +08:00
parent 0627410d7a
commit b2ad110ed2
2 changed files with 9 additions and 7 deletions

View File

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>5.0.1</string>
<string>5.1.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@ -407,8 +407,6 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>

View File

@ -92,11 +92,15 @@ Assign BOOL isGoChangeWiFi;//更换为设备的WiFi
//WiFi
-(void)connectWiFiBtnClick:(UIButton *)sender{
NSURL *url1 = [NSURL URLWithString:@"App-prefs:root=WIFI"];
if ([[UIApplication sharedApplication] canOpenURL:url1])
{
NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
if([[UIApplication sharedApplication] canOpenURL:url]) {
if (@available(iOS 10.0, *)) {
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
}else {
[[UIApplication sharedApplication] openURL:url];
}
self.isGoChangeWiFi = YES;
[[UIApplication sharedApplication] openURL:url1];
}
}
-(void)checkWiFi{