我设置
[objectManager setAcceptHeaderWithMIMEType:@"text/json"];
&安培;在PHP服务器脚本
header('content-type:text/json;charset=utf-8');
但仍然得到
Error: .... NSLocalizedDescription=Expected content type {(
"application/x-www-form-urlencoded",
"application/json"
)}, got text/json}