報(bào)錯(cuò)內(nèi)容:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
權(quán)宜之計(jì):
1、在Info.plist中添加 NSAppTransportSecurity 類型 Dictionary ;
2、在 NSAppTransportSecurity 下添加 NSAllowsArbitraryLoads 類型Boolean ,值設(shè)為 YES;