How do I set a request timeout and cache policy in AFNetworking 2.0?

前端 未结 5 1744
夕颜
夕颜 2021-02-01 17:08

I\'m following the given example code

AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
[manager GET:@\"http://example.com/resour         


        
5条回答
  •  野性不改
    2021-02-01 17:51

    You can also create a category AFHTTPRequestOperationManager+timeout to add this method without having to subclass AFHTTPRequestOperationManager.

提交回复
热议问题