解决方案
40
试试AFN?
AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManager manager]; NSMutableDictionary *params = [NSMutableDictionary dictionary]; params[@"xxx"] = xxx; [mgr POST:xxx parameters:params constructingBodyWithBlock:^(id<AFMultipartFormData> formData) { } success:^(AFHTTPRequestOperation *operation, NSDictionary *responseObject) { } failure:^(AFHTTPRequestOperation *operation, NSError *error) { }];