From b2ad110ed2b2fff2f0889125e79895d91e3b6127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E4=BC=9A=E7=BC=96=E7=A8=8B=E7=9A=84?= =?UTF-8?q?=E7=8B=AE=E5=AD=90?= Date: Thu, 24 Oct 2019 21:44:32 +0800 Subject: [PATCH] =?UTF-8?q?[modify]=EF=BC=9AGuideline=202.5.1=20-=20Perfor?= =?UTF-8?q?mance=20-=20Software=20Requirements=20Your=20app=20uses=20the?= =?UTF-8?q?=20=E2=80=9Cprefs:root=3D=E2=80=9D=20non-public=20URL=20scheme,?= =?UTF-8?q?=20which=20is=20a=20private=20entity.=20The=20use=20of=20non-pu?= =?UTF-8?q?blic=20APIs=20is=20not=20permitted=20on=20the=20App=20Store=20b?= =?UTF-8?q?ecause=20it=20can=20lead=20to=20a=20poor=20user=20experience=20?= =?UTF-8?q?should=20these=20APIs=20change.=20Specifically,=20your=20app=20?= =?UTF-8?q?uses=20the=20following=20non-public=20URL=20scheme:=20-app-pref?= =?UTF-8?q?s:root=3Dwifi=20Continuing=20to=20use=20or=20conceal=20non-publ?= =?UTF-8?q?ic=20APIs=20in=20future=20submissions=20of=20this=20app=20may?= =?UTF-8?q?=20result=20in=20the=20termination=20of=20your=20Apple=20Develo?= =?UTF-8?q?per=20account,=20as=20well=20as=20removal=20of=20all=20associat?= =?UTF-8?q?ed=20apps=20from=20the=20App=20Store.=20=E2=80=94=E2=80=94?= =?UTF-8?q?=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94?= =?UTF-8?q?=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94?= =?UTF-8?q?=20=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ifish/Info.plist | 4 +--- .../ConnectAauariumVC/ConAquarChooseWiFiVC.m | 12 ++++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Ifish/Info.plist b/Ifish/Info.plist index 2429ab9..b7cc88a 100644 --- a/Ifish/Info.plist +++ b/Ifish/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 5.0.1 + 5.1.2 CFBundleSignature ???? CFBundleURLTypes @@ -407,8 +407,6 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - UIUserInterfaceStyle - Light UIViewControllerBasedStatusBarAppearance diff --git a/Ifish/controllers/ConnectAauariumVC/ConAquarChooseWiFiVC.m b/Ifish/controllers/ConnectAauariumVC/ConAquarChooseWiFiVC.m index f35d4f9..86471f1 100644 --- a/Ifish/controllers/ConnectAauariumVC/ConAquarChooseWiFiVC.m +++ b/Ifish/controllers/ConnectAauariumVC/ConAquarChooseWiFiVC.m @@ -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{