问题标签 [restkit-0.24.x]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
127 浏览

ios - 如何将 Restkit for IOS 中的编码从 Utf8 更改为 Wincp1251

我从 wincp1251 中的服务器获得响应,restkit 将 nil 返回到我的映射对象字符串。我知道restKit在RKClient中有一个属性defaultHTTPEncoding(https://github.com/RestKit/RestKit/commit/0ead8a922219ec42ec6dae6ebe59139a1fd589ae),我该如何使用它,它可以帮助我吗?

0 投票
1 回答
77 浏览

ios - Error Domain=org.restkit.RestKit.ErrorDomain Code=-1011 "Expected status code in (200), got 504" - Only in real Device

My code is perfectly working in iOS Simulator and when i run on real device it is not working.It waits 5 minutes to get the response in simulator but in device it dies after 1 minute.Please give me a solution.