Combining multiple values for one key.
using NSDictionary + NSArray
For instance:
AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:url];
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys: @"value1", @"param1", @"value2", @"param2", [NSArray arrayWithObjects:@"value3",@"value4",@"value5",nil], @"param3", nil];
NSMutableURLRequest *request = [httpClient requestWithMethod:@"POST" path:@"/yourhostpath" parameters:params];
you need to replace "url" and "yourhostpath" with your own, please refer to the AFHttpClient demo code for AFNetworking for this.
source
share