问题描述
- afn请求超时怎么设置 代码如下
-
NSString *path =[NSString stringWithFormat: @"%@/report/list",HOST_URL];
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
NSMutableDictionary *params = [NSMutableDictionary dictionary];
[manager setResponseSerializer:[AFHTTPResponseSerializer serializer]];
[manager GET:path parameters:params success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:responseObject options:0 error:nil];} failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"发送失败"); }];
}
解决方案
http://ask.csdn.net/questions/161627
时间: 2024-10-02 20:29:45