這篇文章將為大家詳細(xì)講解有關(guān)iOS10不能跳轉(zhuǎn)系統(tǒng)WiFi列表怎么辦,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。

創(chuàng)新互聯(lián)公司主營(yíng)遜克網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,重慶APP軟件開發(fā),遜克h5小程序制作搭建,遜克網(wǎng)站營(yíng)銷推廣歡迎遜克等地區(qū)企業(yè)咨詢
第一種方式:
在iOS10更新后,系統(tǒng)設(shè)置跳轉(zhuǎn)被禁用,只能跳轉(zhuǎn)App設(shè)置,但是最近發(fā)現(xiàn)蘋果又更新了URLscheme,親測(cè)可用,建議iOS10已下,還用原來的scheme
#define iOS10 ([[UIDevice currentDevice].systemVersion doubleValue] >= 10.0)
NSString * urlString = @"App-Prefs:root=WIFI";
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:urlString]]) {
if (iOS10) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil];
} else {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];
}
}第二種方式:
用到了私有API,慎用,若想使用并通過審核,可以對(duì)私有方法名等加密
NSURL*url=[NSURL URLWithString:@"Prefs:root=WIFI"]; Class LSApplicationWorkspace = NSClassFromString(@"LSApplicationWorkspace"); [[LSApplicationWorkspace performSelector:@selector(defaultWorkspace)] performSelector:@selector(openSensitiveURL:withOptions:) withObject:url withObject:nil];
附錄:iOS10之后,其它界面的跳轉(zhuǎn)
當(dāng)前iOS10支持的所有跳轉(zhuǎn),親測(cè)可用(測(cè)試系統(tǒng):10.2.1)
跳轉(zhuǎn) 寫法
無線局域網(wǎng) App-Prefs:root=WIFI
藍(lán)牙 App-Prefs:root=Bluetooth
蜂窩移動(dòng)網(wǎng)絡(luò) App-Prefs:root=MOBILE_DATA_SETTINGS_ID
個(gè)人熱點(diǎn) App-Prefs:root=INTERNET_TETHERING
運(yùn)營(yíng)商 App-Prefs:root=Carrier
通知 App-Prefs:root=NOTIFICATIONS_ID
通用 App-Prefs:root=General
通用-關(guān)于本機(jī) App-Prefs:root=General&path=About
通用-鍵盤 App-Prefs:root=General&path=Keyboard
通用-輔助功能 App-Prefs:root=General&path=ACCESSIBILITY
通用-語言與地區(qū) App-Prefs:root=General&path=INTERNATIONAL
通用-還原 App-Prefs:root=Reset
墻紙 App-Prefs:root=Wallpaper
Siri App-Prefs:root=SIRI
隱私 App-Prefs:root=Privacy
Safari App-Prefs:root=SAFARI
音樂 App-Prefs:root=MUSIC
音樂-均衡器 App-Prefs:root=MUSIC&path=com.apple.Music:EQ
照片與相機(jī) App-Prefs:root=Photos
FaceTime App-Prefs:root=FACETIME
關(guān)于“iOS10不能跳轉(zhuǎn)系統(tǒng)WiFi列表怎么辦”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。
當(dāng)前名稱:iOS10不能跳轉(zhuǎn)系統(tǒng)WiFi列表怎么辦
網(wǎng)站地址:http://www.chinadenli.net/article48/piidhp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、品牌網(wǎng)站設(shè)計(jì)、建站公司、外貿(mào)網(wǎng)站建設(shè)、品牌網(wǎng)站建設(shè)、Google
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)