iOS项目中遇到的问题--持续

加载不出所请求的数据:

AppTransport Security has blocked a cleartext HTTP (http://) resource load sinceit is insecure. Temporary exceptions can be configured via your app'sInfo.plist file.
分析:iOS9新特性要求app内访问网络请求,要采用HTTPS协议,而请求的数据格式是http格式的,所以不允许加载数据。
解决:
在info.plist文件中添加NSAppTransportSecurity类型为Dictionary;
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型为Boolean,值设为YES

无标题.png
65A28A86-6AFE-45D9-B591-B56FA40AAFA8.png

[Graphics] UIColor created with component values far outside the expected range. Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.

字面意思理解是颜色色值超出了范围--

检查代码 发现有个颜色:

rightLineLayer.backgroundColor = [UIColor colorWithRed:230 green:233 blue:237 alpha:1].CGColor;

修正为:

rightLineLayer.backgroundColor = [UIColor colorWithRed:230/255.0 green:233/255.0 blue:237/255.0 alpha:1].CGColor;

你可能感兴趣的:(iOS项目中遇到的问题--持续)