Hello Guys I have one string For example
"Name=Mihir&,Age=34&,Allergy=&,Symptoms=Fever,Sore throat&,Tested=No&,State=Rhode Island"
So I need to convert this string into 2 arrays key and values like one array before = and another array after equal to.
I have done some code but I don't know what to do next!
Please see my code below:
strCustomFields = _incident.CustomFields;
NSLog(@"strCustomFields = %@",strCustomFields);
NSArray *items = [strCustomFields componentsSeparatedByString:@"&,"];
Here I have separated into array So now I have 6 arrays but now how to make my array to key and value like below?
array1 = Name,Age,Allergy,Symptoms,Tested,State
array2 = Mihir,34,,Fever Sore throat,No,Rhode Island