无法使用AFHTTPRequestOperationManager [英] Can't use AFHTTPRequestOperationManager

查看:404
本文介绍了无法使用AFHTTPRequestOperationManager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用AFNetworking时遇到了问题。我在我的代码中写了这个:

I got a problem when I'm using AFNetworking. I wrote this in my code:

AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];

我在项目中添加了这些文件,我也尝试将它们放入我的项目喜欢这个。但编译器仍然告诉我使用未声明的标识符'AFHTTPRequestOperationManager'。有人可以帮帮我吗?

I do add those files in my project, and I also try pod them into my project like this. But the compiler still told me "use of undeclared identifier 'AFHTTPRequestOperationManager'". Someone can help me?

截图:截图

推荐答案

事实上,这是因为在AFNetworking 3.x之后,再也没有AFHTTPRequestOperationManager了。您应该使用AFHTTPSessionManager。

In fact, it's because after AFNetworking 3.x, there is no AFHTTPRequestOperationManager any more. You should use AFHTTPSessionManager instead.

这篇关于无法使用AFHTTPRequestOperationManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆