You can parse a string field into an array using the following code. In this example I am separating this string by ” ” or where there are spaces.
NSArray *array = [string componentsSeparatedByString:@" "];
If you wanted to take the array you built in the prior command, and join them together and separate the items by a “,” here is one example.
NSString *string = [array componentsJoinedByString:@","];
If you want to append string1 and string2, you can use the following code and the value will be stored in string3.
NSString *string3 = [string1 stringByAppendingString:string2];
Thanks for checking out my code example, and I plan to do many more, Dayton.