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:
Use the componentsSeparatedByString: method of NSString.
componentsSeparatedByString:
NSString string = @"hai-welcome"; NSArray myArray = [string componentsSeparatedByString:@"-"]; NSString* haiString = [myArray objectAtIndex:0]; NSString* welcomeString = [myArray objectAtIndex:1];