I have a string in the following format
myString = \"cat+dog+cow\"
I need to store each string separated by + in to a array. Eg:
componentsSeparatedByString: splits the string and return the result in an array.
componentsSeparatedByString:
NSArray *myArray = [myString componentsSeparatedByString:@"+"]; [myArray objectAtIndex:0];//cat [myArray objectAtIndex:1];//dog [myArray objectAtIndex:2];//cow