info.plist 文件里边添加属性:App Transport Security Settings 字典类型,内含key:Allow Arbitrary Loads, boolean 类型,value为YES。这样就可以使用http请求了。否则不能网络请求