如何獲取AFHTTPRequest的進度?我試過在網上搜索。
我使用:AFNetworking 2.0 HTTP POST進度
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
NSDictionary *params = @{@"gameId" : datas[0], @"p1": datas[1], @"p2":datas[2], @"turn":datas[3] };
manager.requestSerializer = [AFHTTPRequestSerializer serializer];
manager.responseSerializer = [AFHTTPResponseSerializer serializer];
[manager POST:@"http://localhost/thepath/isprivate/thefile.php"
parameters:params success:^(AFHTTPRequestOperation *operation, id responseObject) {
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
}];
有沒有想,一個屬性或方法我可以用它來訪問的AFNetworking 2.0 HTTP POST的進展如何?
嗨,你可以檢查這個答案http://stackoverflow.com/a/20543730/1228669 – prasad