如何跳到系統設定裡的各種設定介面

2021-07-08 17:41:51 字數 2373 閱讀 4725

//定位服務設定介面

nsurl *url = [nsurl urlwithstring:@"prefs:root=location_services"];

這樣就可以跳到系統設定的定位服務介面啦!我們繼續看幾個列子。

//facetime設定介面

nsurl *url = [nsurl urlwithstring:@"prefs:root=facetime"];

//**設定介面

nsurl *url = [nsurl urlwithstring:@"prefs:root=music"];

//牆紙設定介面

nsurl *url = [nsurl urlwithstring:@"prefs:root=wall*****"];

//藍芽設定介面

nsurl *url = [nsurl urlwithstring:@"prefs:root=bluetooth"];

//icloud設定介面

nsurl *url = [nsurl urlwithstring:@"prefs:root=castle"];

看到這幾個例子,大家有沒有發現,想跳到哪個設定介面只需要prefs:root=後面的值即可!是的,就是這樣的。

我在網上找到乙個列表,可以跳到這些介面的引數配置:

about — prefs:root=general&path=about

accessibility — prefs:root=general&path=accessibility

airplane mode on — prefs:root=airplane_mode

auto-lock — prefs:root=general&path=autolock

brightness — prefs:root=brightness

bluetooth — prefs:root=general&path=bluetooth

date & time — prefs:root=general&path=date_and_time

facetime — prefs:root=facetime

general — prefs:root=general

keyboard — prefs:root=general&path=keyboard

icloud — prefs:root=castle

icloud storage & backup — prefs:root=castle&path=storage_and_backup

international — prefs:root=general&path=international

location services — prefs:root=location_services

music — prefs:root=music

music equalizer — prefs:root=music&path=eq

music volume limit — prefs:root=music&path=volumelimit

network — prefs:root=general&path=network

nike + ipod — prefs:root=nike_plus_ipod

notes — prefs:root=notes

notification — prefs:root=notifications_id

phone — prefs:root=phone

photos — prefs:root=photos

profile — prefs:root=general&path=managedconfigurationlist

reset — prefs:root=general&path=reset

safari — prefs:root=safari

siri — prefs:root=general&path=assistant

sounds — prefs:root=sounds

software update — prefs:root=general&path=software_update_link

store — prefs:root=store

twitter — prefs:root=twitter

usage — prefs:root=general&path=usage

vpn — prefs:root=general&path=network/vpn

wall***** — prefs:root=wall*****

wi-fi — prefs:root=wifi

iosstrongdemo

iOS開發 如何跳到系統設定裡的各種設定介面

在ios開發中,有時會有跳轉系統設定介面的需求,例如提示使用者開啟藍芽或者wifi,提醒使用者開啟推送或者位置許可權等。在ios6之後,第三方應用需要跳轉系統設定介面,需要在url type中新增乙個prefs值,如下圖 需要設定prefs qjifmvb.png web.png 設定跳轉有三種方式...

iOS開發之如何跳到系統設定裡的各種設定介面

定位服務設定介面 nsurl url nsurl urlwithstring prefs root location services 這樣就可以跳到系統設定的定位服務介面啦!我們繼續看幾個列子。facetime設定介面 nsurl url nsurl urlwithstring prefs roo...

iOS開發之如何跳到系統設定裡的各種設定介面

定位服務設定介面 nsurl url nsurl urlwithstring prefs root location services 這樣就可以跳到系統設定的定位服務介面啦!我們繼續看幾個列子。facetime設定介面 nsurl url nsurl urlwithstring prefs roo...