iOS Plist解析(官方链接)
来源:互联网 发布:2017华为网络大赛赛题 编辑:程序博客网 时间:2024/06/15 20:26
https://developer.apple.com/library/prerelease/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html
Cocoa Keys
Cocoa and Cocoa Touch are the environments used to define Objective-C based apps that run in OS X and iOS respectively. The keys associated with the Cocoa environments provide support for Interface Builder nib files and provide support for other user-facing features vended by your bundle.
Cocoa keys use the prefix NS to distinguish them from other keys. For information about developing Cocoa Touch apps for iOS, see App Programming Guide for iOS. For information about developing Cocoa apps for OS X, see Cocoa Fundamentals Guide.
NSAppTransportSecurity
NSAppTransportSecurity (Dictionary - iOS, OS X) Use this key to describe your app’s intended network behavior if you require exceptions from best practices for secure communication over the Internet.
Starting in iOS 9.0 and OS X v10.11, App Transport Security (ATS) is enabled as a system default behavior. It improves the privacy and data integrity of connections between an app and web services by using the Transport Layer Security (TLS) protocol version 1.2 (RFC 5246). ATS converts all HTTP requests to HTTPS (RFC 2818) automatically; attempts to connect insecurely over the Internet fail.
The APIs that provide ATS are the NSURLConnection and NSURLSession classes and the CFURLRef opaque type.
If your app uses secure network connections exclusively and those connections use best-practice networking properties, you do not need to employ the NSAppTransportSecurity key.
If you link your app against an operating system older than iOS 9.0 or OS X v10.11, ATS is not available, and you would likewise not use this key.
Table 2 shows the keys for describing your app’s intended network behavior.
NSAllowsArbitraryLoads
Boolean
An optional Boolean value that, when set to YES, disables App Transport Security (ATS) for any domains not listed in the NSExceptionDomains dictionary.
NOTE Enabling this key is intended for debugging and development purposes.
Disabling ATS allows connection regardless of HTTP or HTTPS configuration, allows connection to servers with lower TLS versions, and allows cipher suites that do not support forward secrecy (FS).
With this key set to YES, a domain listed in the NSExceptionDomains dictionary uses the settings you specify for it.
This key’s default value of NO results in default ATS behavior for all connections.
Allowing Insecure Connection to a Single Server
To use ATS generally but allow connection to a specific server that does not support the HTTPS protocol—for example, a media server that your app uses—employ the following configuration pattern in your Info.plist file:
NSAppTransportSecurity
NSExceptionDomains
“media_server.example.com”
NSExceptionAllowsInsecureHTTPLoads = YES
- iOS Plist解析(官方链接)
- 【iOS】Plist-XML-JSON数据解析
- 【iOS】Plist-XML-JSON数据解析
- iOS的Plist-XML-JSON数据解析
- iOS之OC随笔-plist文件解析
- plist解析
- info.plist 说明 [官方]
- ios.plist
- iOS 开发官方文档链接收集
- iOS (ProjectName-info.plist) (ProjectName-Prefix.pch) 解析
- iOS项目开发实战——plist数组解析
- IOS Info.plist 文件中部分常用选项解析
- iOS项目配置文件info.plist文件解析上
- iOS项目配置文件info.plist文件解析下
- java 解析 plist文件
- android解析plist文件
- android解析plist文件
- android解析plist文件
- GitHub 上都有哪些值得关注学习的 iOS 开源项目?
- IOS学习——TableViewController
- 【Oracle】Oracle 12c DB In-Memory入门实验手册(四)
- tuzicms系统header出现乱码问题的解决
- Eclipse中修改SVN用户名和密码方法
- iOS Plist解析(官方链接)
- C#获取文件当前路径
- oracle最重要的9个动态性能视图
- 车牌检测(定位)
- LC串联和并联电路汇总
- Android开发进阶系列(五) 连接服务器下载文件或资源
- 华为oj 整形数组合并
- Oracle数据字典详解
- WIFEXITED/WEXITSTATUS/WIFSIGNALED