解決iOS10不能跳轉系統WiFi列表的問題

2021-07-24 19:36:39 字數 905 閱讀 8195

第一種方式:

#define ios10 ([[uidevice currentdevice].systemversion doublevalue] >= 10.0)

if (ios10) else

}

第二種方式:

用到了私有api,慎用,若想使用並通過審核,可以對私有方法名等加密

nsurl*url=[nsurl urlwithstring:@"prefs:root=wifi"];
附錄:ios10之後,其它介面的跳轉

當前ios10支援的所有跳轉,親測可用(測試系統:10.2.1)

跳轉 寫法

:root=wifi

:root=bluetooth

:root=mobile_data_settings_id

:root=internet_tethering

:root=carrier

:root=notifications_id

:root=general

:root=general&path=about

:root=general&path=keyboard

:root=general&path=accessibility

:root=general&path=international

:root=reset

:root=wall*****

siri

:root=siri

:root=privacy

safari

:root=safari

:root=music

:eq:root=photos

facetime

:root=facetime

iOS10 跳轉系統wifi列表

ios10 之後不允許跳轉到任何系統設定頁面,但是可以通過私有api跳轉到系統設定頁面,私有方法如下 慎用 nsurl url nsurl urlwithstring prefs root wifi 可利用ascii值進行拼裝組合或者對私有方法名加密來繞過審核,ascii值進行拼裝組合的方法如下 n...

iOS10 系統跳轉到系統設定

1 在 info.plist中新增 prefs urlsechem 2 ios10 蘋果將系統的設定頁的urlsechem路徑改變了 if progress ws.cropsliderview cropendtime progress ws.videotime else 3 收錄的可使用的urlsc...

iOS 跳轉系統設定

在自己的專案中 需要設定我們的 在執行的方法中執行如下 就會跳到系統的通知的設定中,如下 nsurl url nsurl urlwithstring prefs root location services if 跳到系統的通知設定頁面 如下 oc nsurl url nsurl urlwithst...