iOS 9变化的特性
2015-09-24 10:20
295 查看
http请求的变成了https
在Info.plist中添加NSAppTransportSecurity类型Dictionary。
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
汉字转Url码问题
pod install卡住问题(这个不是因为iOS 9)
换成pod install --verbose --no-repo-update
在Info.plist中添加NSAppTransportSecurity类型Dictionary。
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
汉字转Url码问题
NSString *urlStr = [NSString stringWithFormat:kImgHeadUrl,self.img[i]]; //iOS9之前可以用下面代码将汉字转化为Url码 //urlStr = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; //iOS9.0之后,上面的方法禁用了,可以用下面的代替 urlStr = [urlStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLFragmentAllowedCharacterSet]];
pod install卡住问题(这个不是因为iOS 9)
换成pod install --verbose --no-repo-update
相关文章推荐
- iOS 9 适配
- 升级ios9变化
- iOS页面间传值的五种方式总结(Delegate/NSNotification/Block/NSUserDefault/单例)
- ios 如何把后台反回的数据里面的null替换掉
- iOS的url编码和解码
- 关东升给的ios学习路线图(可以借鉴)
- IOS配置支付宝
- IOS版应用商店应用源码
- IOS版应用商店应用源码
- iOS-Universal-Framework 支持XCode7
- iOS imageView旋转
- iOS中使用正则表达式NSRegularExpression 来验证textfiled输入的内容
- iOS线程锁NSLock案例(卖火车票)
- IOS View传统的价值观之间
- iOS开发笔记--iOS 学习资料整理
- IOS控件 Tableview 下拉刷新,加载数据
- IOS 设置应用图标
- iOS编程规范
- iOS开发官方文档汇总
- iOS presentViewController背景色透明