相关疑难解决方法(0)

如何将NSAppTransportSecurity添加到我的info.plist文件中?

https://developer.apple.com/videos/wwdc/2015/?id=711 @ 5:55

我似乎无法将此添加到我的info.plist.它没有价值.我正在运行XCode 7.0版beta(7A121l),并在iOS9上进行测试.

因为我无法明确声明视频中所见的URL,所以我不断获得"App Transport Security已阻止明文HTTP(http://)资源加载,因为它不安全.临时例外可以通过你的应用程序配置Info.plist文件"错误.

但是,我似乎无法配置它.有任何想法吗?

xcode objective-c ios ios9

121
推荐指数
5
解决办法
17万
查看次数

Why is jQuery Ajax not working in Cordova iOS app

I am building a Cordova app that uses jQuery Ajax to upload images to our server. The uploads were working for a while on both Android and iOS, then after a while they suddenly stopped working on iOS. Now, after a few seconds of trying to access a website, the request fails and I get an error message, which isn't much help. The error is like the following:

readyState: 0
status: 0
statusText: "error"
Run Code Online (Sandbox Code Playgroud)

My code is:

    $.ajax("http://testapi.com/api", {
        data: …
Run Code Online (Sandbox Code Playgroud)

ajax jquery ios cordova

4
推荐指数
1
解决办法
5110
查看次数

标签 统计

ios ×2

ajax ×1

cordova ×1

ios9 ×1

jquery ×1

objective-c ×1

xcode ×1