xcode设置允许访问http请求

项目的info.plist文件添加一下值:
App Transport Security Settings
Allow Arbitrary Loads 设为YES