有人用上AFNetworking 2.0了吗?

icodor 发布于 2013年12月12日
无人欣赏。
    AFHTTPRequestOperationManager *manager=[AFHTTPRequestOperationManager manager];
manager.responseSerializer=[AFJSONRequestSerializer serializer];
[manager GET:@"http://www.weather.com.cn/data/sk/101190101.html" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject){
    NSLog(@"traces:%@",responseObject);
}failure:^(AFHTTPRequestOperation *operation, NSError *error) {
    NSLog(@"Error: %@", error);
}];
解析一个json接口是这样用吗?为啥不行?
共1条回复
icodor 回复于 2013年12月12日

问题解决!http://stackoverflow.com/questions/19830882/unacceptable-content-type-application-rssxml-when-using-afnetworking-2-0

登录 或者 注册
相关帖子