iOS 跳轉(zhuǎn)設(shè)置頁面

跳轉(zhuǎn)自己 App 設(shè)置頁

首先你的 App 得有設(shè)置房维,也就是申請過相冊戈泼、錄音等權(quán)限才可以

// iOS8+
NSURL *appSettingURL = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
if ([[UIApplication sharedApplication] canOpenURL:appSettingURL]) {
   [[UIApplication sharedApplication] openURL:appSettingURL];
}

跳轉(zhuǎn)系統(tǒng)設(shè)置頁

NSURL *keyboardSettingURL = [NSURL URLWithString:@"App-Prefs:root=General&path=Keyboard"];
if ([[UIApplication sharedApplication] canOpenURL:keyboardSettingURL]) {
    [[UIApplication sharedApplication] openURL:keyboardSettingURL];
}

所有可用的 URL

Command Swift < 3 OR Objc Swift 3 Description
The topmost level General prefs: App-Prefs:
About prefs:root=General&path=About App-Prefs:root=General&path=About
Accessibility prefs:root=General&path=ACCESSIBILITY App-Prefs:root=General&path=ACCESSIBILITY
Account Settings prefs:root=ACCOUNT_SETTINGS App-Pref:root=ACCOUNT_SETTINGS
Airplane Mode prefs:root=AIRPLANE_MODE App-Pref:root=AIRPLANE_MODE
Autolock prefs:root=General&path=AUTOLOCK App-Pref:root=General&path=AUTOLOCK
Apple Pay / Wallet shoebox://url-scheme shoebox://url-scheme
Batery prefs:root=BATTERY_USAGE App-Pref:root=BATTERY_USAGE
Brightness prefs:root=Brightness App-Pref:root=Brightness
Bluetooth iOS < 9 prefs:root=General&path=Bluetooth App-Pref:root=General&path=Bluetooth
Bluetooth iOS > 9 prefs:root=Bluetooth App-Pref:root=Bluetooth
Castle prefs:root=CASTLE App-Pref:root=CASTLE
Cellular Usage prefs:root=General&path=USAGE/CELLULAR_USAGE App-Pref:root=General&path=USAGE/CELLULAR_USAGE
Configuration List prefs:root=General&path=ManagedConfigurationList App-Pref:root=General&path=ManagedConfigurationList
Date and Time prefs:root=General&path=DATE_AND_TIME App-Pref:root=General&path=DATE_AND_TIME
Do not disturb prefs:root=General&path=DO_NOT_DISTURB App-Pref:root=General&path=DO_NOT_DISTURB
Facetime prefs:root=FACETIME App-Pref:root=FACETIME
General prefs:root=General App-Pref:root=General
Internet Tethering prefs:root=INTERNET_TETHERING App-Pref:root=INTERNET_TETHERING
iTunes prefs:root=MUSIC App-Pref:root=MUSIC
iTunes Equalizer prefs:root=MUSIC&path=EQ App-Pref:root=MUSIC&path=EQ
iTunes Volume prefs:root=MUSIC&path=VolumeLimit App-Pref:root=MUSIC&path=VolumeLimit
Keyboard prefs:root=General&path=Keyboard App-Pref:root=General&path=Keyboard
Deeper in Keyboard prefs:root=General&path=Keyboard/KEYBOARDS App-Pref:root=General&path=Keyboard/KEYBOARDS
Lang International prefs:root=General&path=INTERNATIONAL App-Pref:root=General&path=INTERNATIONAL
Location Services prefs:root=LOCATION_SERVICES App-Pref:root=LOCATION_SERVICES
Network prefs:root=General&path=Network App-Pref:root=General&path=Network
Nike iPod prefs:root=NIKE_PLUS_IPOD App-Pref:root=NIKE_PLUS_IPOD
Notes prefs:root=NOTES App-Pref:root=NOTES
Notifications ID prefs:root=NOTIFICATIONS_ID App-Pref:root=NOTIFICATIONS_ID
Passbook prefs:root=PASSBOOK App-Pref:root=PASSBOOK
Phone prefs:root=Phone App-Pref:root=Phone
Photo Camera Roll prefs:root=Photos App-Pref:root=Photos
Reset prefs:root=General&path=Reset App-Pref:root=General&path=Reset
Ringtone prefs:root=Sounds&path=Ringtone App-Pref:root=Sounds&path=Ringtone
Siri prefs:root=SIRI App-Pref:root=SIRI
Safari prefs:root=Safari App-Pref:root=Safari
Siri prefs:root=General&path=Assistant App-Pref:root=General&path=Assistant
Sounds prefs:root=Sounds App-Pref:root=Sounds
Software Update prefs:root=General&path=SOFTWARE_UPDATE_LINK App-Pref:root=General&path=SOFTWARE_UPDATE_LINK
Storage & Backup prefs:root=CASTLE&path=STORAGE_AND_BACKUP App-Pref:root=CASTLE&path=STORAGE_AND_BACKUP
Store prefs:root=STORE App-Pref:root=STORE
Twitter prefs:root=TWITTER App-Pref:root=TWITTER
Usage prefs:root=General&path=USAGE App-Pref:root=General&path=USAGE
Video prefs:root=VIDEO App-Pref:root=VIDEO
VPN prefs:root=General&path=Network/VPN App-Pref:root=General&path=Network/VPN
Wallpaper prefs:root=Wallpaper App-Pref:root=Wallpaper
WIFI prefs:root=WIFI App-Pref:root=WIFI

參考:url-schemes-settings-ios.md

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末变姨,一起剝皮案震驚了整個濱河市盖矫,隨后出現(xiàn)的幾起案子纽匙,更是在濱河造成了極大的恐慌务蝠,老刑警劉巖,帶你破解...
    沈念sama閱讀 219,110評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件烛缔,死亡現(xiàn)場離奇詭異馏段,居然都是意外死亡,警方通過查閱死者的電腦和手機践瓷,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,443評論 3 395
  • 文/潘曉璐 我一進店門院喜,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人晕翠,你說我怎么就攤上這事喷舀。” “怎么了崖面?”我有些...
    開封第一講書人閱讀 165,474評論 0 356
  • 文/不壞的土叔 我叫張陵元咙,是天一觀的道長。 經(jīng)常有香客問我巫员,道長庶香,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,881評論 1 295
  • 正文 為了忘掉前任简识,我火速辦了婚禮赶掖,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘七扰。我一直安慰自己奢赂,他們只是感情好,可當(dāng)我...
    茶點故事閱讀 67,902評論 6 392
  • 文/花漫 我一把揭開白布颈走。 她就那樣靜靜地躺著膳灶,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上轧钓,一...
    開封第一講書人閱讀 51,698評論 1 305
  • 那天序厉,我揣著相機與錄音,去河邊找鬼毕箍。 笑死弛房,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的而柑。 我是一名探鬼主播文捶,決...
    沈念sama閱讀 40,418評論 3 419
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼媒咳!你這毒婦竟也來了粹排?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,332評論 0 276
  • 序言:老撾萬榮一對情侶失蹤伟葫,失蹤者是張志新(化名)和其女友劉穎恨搓,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體筏养,經(jīng)...
    沈念sama閱讀 45,796評論 1 316
  • 正文 獨居荒郊野嶺守林人離奇死亡斧抱,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,968評論 3 337
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了渐溶。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片辉浦。...
    茶點故事閱讀 40,110評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖茎辐,靈堂內(nèi)的尸體忽然破棺而出宪郊,到底是詐尸還是另有隱情,我是刑警寧澤拖陆,帶...
    沈念sama閱讀 35,792評論 5 346
  • 正文 年R本政府宣布弛槐,位于F島的核電站,受9級特大地震影響依啰,放射性物質(zhì)發(fā)生泄漏乎串。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,455評論 3 331
  • 文/蒙蒙 一速警、第九天 我趴在偏房一處隱蔽的房頂上張望叹誉。 院中可真熱鬧,春花似錦闷旧、人聲如沸长豁。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,003評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽匠襟。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間宅此,已是汗流浹背机错。 一陣腳步聲響...
    開封第一講書人閱讀 33,130評論 1 272
  • 我被黑心中介騙來泰國打工爬范, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留父腕,地道東北人。 一個月前我還...
    沈念sama閱讀 48,348評論 3 373
  • 正文 我出身青樓青瀑,卻偏偏與公主長得像璧亮,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子斥难,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 45,047評論 2 355

推薦閱讀更多精彩內(nèi)容