How parse url to get get key and value

I am refering this answer to parse url but when parse this url NSString *urlString = @"https://www.example.com/product-detail?journey_id=123456&iswa=1"; I am getting my 1st key is https://www.example.com/product-detail?journey_id But I need only journey_id as my key. This is what I have done in coding: NSString *urlString = @"https://www.example.com/product-detail?journey_id=123456&iswa=1"; NSMutableDictionary *waLoginDictionary = [[NSMutableDictionary alloc] init]; NSArray *urlComponents = [urlString… Read More How parse url to get get key and value