运行报错:
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.
问题产生原因:
xcode出于安全考虑禁止 http:// 开头地址的访问,而只能访问 https:// 开头的地址
解决方案:
在info.plist中添加红线框出部分