iOS 開啟系統設定的常用功能

來源:互聯網
上載者:User

標籤:

 

說明: 跳轉到系統設定不同功能介面,只要知道路徑都很簡單,路徑可以自己開啟手機設定介面看,

照著模板把對應的名稱替換就可以了,但是得知道對應功能的英文名稱。

1、 prefs:root=Privacy&path=CAMERA  開啟相機許可權介面,
NSString *path = @"prefs:root=Privacy&path=CAMERA"; //路徑NSURL *url = [NSURL URLWithString:path];if ([[UIApplication sharedApplication] canOpenURL:url]){    [[UIApplication sharedApplication] openURL:url];}

 

2、開啟隱私-麥克風介面    prefs:root=Privacy&path=MICROPHONE

NSURL *url = [NSURL URLWithString:@"prefs:root=Privacy&path=MICROPHONE"];if ([[UIApplication sharedApplication] canOpenURL:url]){     [[UIApplication sharedApplication] openURL:url];}

 

3、開啟隱私-定位服務  prefs:root=Privacy&path=LOCATION

NSURL *url = [NSURL URLWithString:@"prefs:root=Privacy&path=LOCATION"]; if ([[UIApplication sharedApplication] canOpenURL:url]){      [[UIApplication sharedApplication] openURL:url];}

 

 還可以直接開啟某個應用的存取權限列表,路徑 設定--應用程式名稱,類似高德地圖關閉位置服務後,點擊設定後跳轉到高德的允許訪問功能頁面,

對於這種包含應用程式名稱的,我試了幾種方法都沒成功,不知道直接跳轉到應用的路徑怎麼寫。

 

網上一些開啟其他介面的路徑

About — prefs:root=General&path=AboutAccessibility — prefs:root=General&path=ACCESSIBILITYAirplane Mode On — prefs:root=AIRPLANE_MODEAuto-Lock — prefs:root=General&path=AUTOLOCKBrightness — prefs:root=BrightnessBluetooth — prefs:root=General&path=BluetoothDate & Time — prefs:root=General&path=DATE_AND_TIMEFaceTime — prefs:root=FACETIMEGeneral — prefs:root=GeneralKeyboard — prefs:root=General&path=KeyboardiCloud — prefs:root=CASTLEiCloud Storage & Backup — prefs:root=CASTLE&path=STORAGE_AND_BACKUPInternational — prefs:root=General&path=INTERNATIONALLocation Services — prefs:root=LOCATION_SERVICESMusic — prefs:root=MUSICMusic Equalizer — prefs:root=MUSIC&path=EQMusic Volume Limit — prefs:root=MUSIC&path=VolumeLimitNetwork — prefs:root=General&path=NetworkNike + iPod — prefs:root=NIKE_PLUS_IPODNotes — prefs:root=NOTESNotification — prefs:root=NOTIFICATIONS_IDPhone — prefs:root=PhonePhotos — prefs:root=PhotosProfile — prefs:root=General&path=ManagedConfigurationListReset — prefs:root=General&path=ResetSafari — prefs:root=SafariSiri — prefs:root=General&path=AssistantSounds — prefs:root=SoundsSoftware Update — prefs:root=General&path=SOFTWARE_UPDATE_LINKStore — prefs:root=STORETwitter — prefs:root=TWITTERUsage — prefs:root=General&path=USAGEVPN — prefs:root=General&path=Network/VPN

 

iOS 開啟系統設定的常用功能

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.