Object C跳轉到不同的系統設定頁面

2021-07-08 18:15:44 字數 2304 閱讀 9987

//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

跳轉到系統設定頁面

如何跳到指定的設定介面,例如設定wifi的時候,想直接跳到wifi設定介面。在url types新增 乙個叫prefs的url schemes 複製 2.新增這段 把下面的bundle identifier替換為相應的字段即可 複製 3.對應的字段 蜂窩網路 prefs root mobile da...

跳轉到對應的系統介面

跳轉到對應的系統介面 public class intentutil 進入撥號介面 public static void dial activity activity,string phonenumber 直接撥號 需要許可權 android.permission.call phone public...

iOS iOS 跳轉到系統的設定介面

about prefs root general path about accessibility prefs root general path accessibility airplane mode on prefs root airplane mode auto lock prefs root...