[[UIApplication sharedApplication] openURL:url];
通過給url不同的值,可以實現(xiàn)調用系統(tǒng)自帶 電話/短信/郵箱/瀏覽器/...
1、調用 電話phone
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://800888"]];
撥打電話時不出現(xiàn)確認框
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://800888"]];
撥打電話之時彈出確認框
2、調用自帶 瀏覽器safari
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.abt.com"]];
3、調用 自帶Mail
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://admin@abt.com"]];
4、調用 SMS
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://800888"]];
5、調用 app Store
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://"]];
6、調用 iBook
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-books://"]];
7、調用 Map
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"maps://"]];
8、調用 Facetime
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"facetime://"]]; 注意后面加上faceTime的賬號如:99999@qq.com
9、調用 Music
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"music://"]];
10、跳轉到系統(tǒng)設置相關界面
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];
以下為設置的跳轉關鍵字
//打開關于本機
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=About"]];
//打開輔助功能
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=ACCESSIBILITY"]];
//設置飛行模式不成功,即設置界面
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=AIRPLANE_MODE"]];
//屏幕幾分鐘之后鎖定設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=AUTOLOCK"]];
//打開Brightness不成功,設置界面
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Brightness"]];
//打開藍牙設置
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Bluetooth"]];
//設置日期與時間設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=DATE_AND_TIME"]];
//打開FaceTime設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=FACETIME"]];
//下面是打開通用設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];
//打開鍵盤設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Keyboard"]];
//打開iClound設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=CASTLE"]];
//打開iCloud下的儲存空間
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=CASTLE&path=STORAGE_AND_BACKUP"]];
//打開通用下的語言和地區(qū)設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=INTERNATIONAL"]];
//打開隱私下的定位服務
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]];
//打開設置下的音樂
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=MUSIC"]];
//打開音樂下的均衡器
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=MUSIC&path=EQ"]];
//打開音樂下的什么不成功
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=MUSIC&path=VolumeLimit"]];
//打開通用下的網絡不成功
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Network"]];
//打開通用下的什么不成功
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=NIKE_PLUS_IPOD"]];
//打開設置下的備忘錄設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=NOTES"]];
//打開設置下的通知設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=NOTIFICATIONS_ID"]];
//打開電話設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Phone"]];
//打開設置下照片和相機設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Photos"]];
//打開通用下的描述文件
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=ManagedConfigurationList"]];
//打開通用下的還原設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Reset"]];
//打開設置下的safari設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Safari"]];
//打開siri不成功
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Assistant"]];
//打開設置下的聲音設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Sounds"]];
//打開通用下的軟件更新
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=SOFTWARE_UPDATE_LINK"]];
//打開通用下的iTounes Store和App Store設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=STORE"]];
//打開設置下的twitter設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=TWITTER"]];
//打開通用下的用量
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=USAGE"]];
//打開通用下的vpn設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=VPN"]];
//打開設置下的墻紙設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Wallpaper"]];
//打開wifi設置
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];
//打開不成功
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root= INTERNET_TETHERING"]];