The resource could not be loaded because the App Transport Security policy requires the use of a secure connection
百思不得姐,有时候明明设置了info.plist的Allow Arbitrary Loads为YES,还是请求不了数据,因为我还设置了Allow Arbitrary Loads In Web Con...为YES,在苹果6上运行不行,在苹果5上运行就可以,可能是因为系统一个是iOS10.1.1,一个是iOS9.3的原因吧。于是就把这个设置删掉了,就请求到了HTTP的数据。记得删掉Allow Arbitrary Loads In Web Con这个哦。。。
有人说如果设置了Allow Arbitrary Loads In Web Con..为YES,会忽略掉Allow Arbitrary Loads这个,所以HTTP请求不到数据。