Why not write it your self?
you can use that, just keep the right order when you put the values into the dictionary.
- (NSString *)makeURLFromDictionary:(NSString *)url values:(NSDictionary *)dictionary
{
NSMutableString *string = [[NSMutableString alloc]initWithString:url];
[string appendString:@"?"];
for (id key in dictionary) {
[string appendString:key];
[string appendString:@"="];
[string appendString:[dictionary objectForKey:key]];
[string appendString:@"&"];
}
//this will remove the last &
[string deleteCharactersInRange:NSMakeRange([string length]-1, 1)];
return string;
}
Please just check the returned string, if I'm not wrong you should put it in reverse way, F.I.L.O(First in Last Out style).
enter the dict's values like this:
NSMutableDictionary *dict = [[NSMutableDictionary alloc]init];
[dict setObject:@"hello" forKey:@"name"];
[dict setObject:@"18" forKey:@"value"];
NSString *urlString = [self makeURLFromDictionary:@"www.blah.com/somthing.php" values:dict];
Hop i help you.