iOS8跳转到系统设置页
版权声明:本文为博主原创文章,未经博主允许不得转载。
大家都知道,在iOS5.0时时可以跳转到系统的设置页的。但是在5.1之后就不可以了。
刚才研究了下这个问题,发现只有iOS8可以跳转到系统设置里自己App的页面。
目前没有找到iOS7怎么跳转过去。如果你知道请一定要留言告知,Thanks!
下面说下iOS8是如何跳转的,以下是代码:
- NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
- if ([[UIApplication sharedApplication] canOpenURL:url]) {
- [[UIApplication sharedApplication] openURL:url];
- }
如果有感兴趣的同学可以留言大家谈论。
原文地址:http://blog.csdn.net/showhilllee/article/details/44057403
===================2015-07-22补充========================
跳转到系统WiFi设置页面代码:
- NSURL*url=[NSURL URLWithString:@"prefs:root=WIFI"];
- [[UIApplication sharedApplication] openURL:url];
另附其他设置页面:
- 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
- Wallpaper — prefs:root=Wallpaper
- Wi-Fi — prefs:root=WIFI
- Setting —prefs:root=INTERNET_TETHERING
原文地址:http://blog.csdn.net/showhilllee/article/details/44057403
-----------警告⚠️------------
经过试验,在LZ的设备上跳转都没有问题(设备iPhone6,iOS8.3),但是在iphone5s,iphopn6 plus(都是8.4)上是无法跳转的。感觉苹果在走一条不归路啊~
PS.有其他手机或系统的可以留言下是否可以。
iOS8跳转到系统设置页的更多相关文章
- >=ios8 应用内跳转到系统设置界面-openURL
iOS8以后,苹果允许从应用内跳转到系统设置,但是调试结果表明,跳不到具体的设置项,使用前应该判断当前是否能够跳转到系统设置. 代码: NSURL *url = [NSURL URLWithStrin ...
- iOS应用内跳转到指定系统设置页
APP的跳转: 通过[ [UIApplication sharedApplication] openURL:url]这种方法来实现的. iOS 10以后跳转设置页要用 [[UIApplication ...
- iOS - 跳转到系统设置
一.跳转到自己应用设置(iOS8以上系统推荐使用) //跳转到自己应用干的设置配置页(如 定位.相机.相册 这些隐私配置) [[UIApplication sharedApplication] ope ...
- iOS 10 应用内跳转到系统设置
在iOS开发中,有时会有跳转系统设置界面的需求,例如提示用户打开蓝牙或者WIFI,提醒用户打开推送或者位置权限等.在iOS6之后,第三方应用需要跳转系统设置界面,需要在URL type中添加一个pre ...
- iOS 从应用中跳转至系统设置页面里的多种设置页面
我们在开发app过程中很多时候会需要设置系统权限,这时就需要在应用中跳转至系统设置页面权限设置页面,以下是自己结合网上的资料总结的一些经验: 直接从应用中跳转至系统设置中这个应用的权限设置页面 NSU ...
- 后台跳转到登录页嵌套在iframe的问题(MVC例)
//首页 public ActionResult Index() { if (!Request.IsAuthenticated) //判断权限,没有登录就跳回登录页 {string url = Url ...
- ios跳转到系统设置
在项目中,我们经常会碰到使用位置的需求.当用户设置app不允许使用位置的时候,最好的用户体验就是直接调转到系统的位置设置界面,进行设置. 第一 跳转到自己项目(在需要调转的按钮动作中添加如下的代码,就 ...
- SSM登录跳转到登录页,登录页不能加载js和样式
SSM登录跳转到登录页,登录页不能加载js和样式选用jsppage添加根路径. <% String rootPath = request.getContextPath(); %> < ...
- jquery datatables 添加跳转到指定页功能
项目中使用了jquery datatables 作为我们的数据表格组件,但是分页上没有跳转到指定页,需要自己重新写.解决方法如下: 在设置dataTables的默认属性里设置它的drawCallbac ...
随机推荐
- vue学习起步,vue环境安装
vue安装的前提是安装了nodejs 安装淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org 安装webpack c ...
- ios学习之UIWebView网页视图调整
//先来一个可行的小Demo程序:结合searchBar的google搜索 #import <UIKit/UIKit.h> @interface ViewController : UIVi ...
- Eclipse------导入项目后出现javax.servlet.jsp cannot be resolved to a type
报错信息:javax.servlet.jsp cannot be resolved to a type 原因1: 这个错误可能是服务器自带的servlet库未导入的原因. 解决方法: 右键项目&quo ...
- 【Oracle】BLOB
1.データベースからの読み込み Dim strSql As String = "select IMG from TBL where ID=XX" Dim cmd As New Or ...
- grid简单布局
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- 【RF库Collections测试】Sort List
Name:Sort ListSource:Collections <test library>Arguments:[ list_ ]Sorts the given list in plac ...
- SpringBoot(十二)-- 整合Redis
1.pom依赖 <!-- 添加redis支持 --> <dependency> <groupId>org.springframework.boot</grou ...
- Git 单机版
Git 是一个分布式的开源版本控制系统,也就是说,每台机器都可以充当控制中心,我从本机拉取代码,再提交代码到本机,不需要依赖网络,各自开发各自的 如何创建 git 仓库: [root@localhos ...
- u3d 加密资源并缓存加载
// C# Example // Builds an asset bundle from the selected objects in the project view. // Once compi ...
- [XPath] XPath 与 lxml (一)XPath 术语
前言 这是一篇主要介绍 XPath 的文章,由于 JQuery 已经不支持 XPath,所以本文主要通过 Python 的 lxml.etree 来介绍 XPath. 什么是 XPath ? XPat ...