//创建AFNetworking的请求操作
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://lib.wap.zol.com.cn/ipj/docList.php?class_id=%ld&page=%ld&vs=and380&retina=1", selfId, page + 1]]]]; //设置AFNetworking返回的数据 自动进行json解析 operation.responseSerializer = [AFJSONResponseSerializer serializer]; [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { [_netDataDelegate dataRead:responseObject]; } failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"%@", error); }]; //开启数据请求 [operation start];