在info.plist文件,添加 NSAppTransportSecurity --> Dictionary 类型 在添加该字段的子项,NSAllowsArbitraryLoads --> Boolean -->设置成YES