访问网络有可能出现错误提示 The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. 这是由于没有设置访问网络权限,
对 info.plist进行如下设置
App Transport Security Settings
再在 App Transport Security Settings 下增加 Allow Arbitrary Loads 并设置其值为 YES