NSArray *keyValues = [self.urlString componentsSeparatedByString:@"&"];
NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
for (NSString *keyValue in keyValues) {
NSArray *arr = [keyValue componentsSeparatedByString:@"="];
[dic setValue:arr[1] forKey:arr[0]];
}
网友评论