服務(wù)器返回的數(shù)據(jù)是application/xml格式的兽泣,AFN默認處理的是JSON格式的所以會報錯
解決方法:添加@“application/xml”
AFHTTPSessionManager *session = [AFHTTPSessionManager manager];
session.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html", @"application/xml", nil];