I got a problem when I'm using AFNetworking. I wrote this in my code:
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
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?
screenshot:screenshot
In fact, it's because after AFNetworking 3.x, there is no AFHTTPRequestOperationManager any more. You should use AFHTTPSessionManager instead.
Please check the profile - AFNetworking version
Change to
pod 'AFNetworking', '~> 2.5.4'
and use
import "AFHTTPRequestOperationManager.h"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With