This will be the solution if you are dealing with a string:
NSString *mySstring = @"hai-welcome";
NSMutableArray *anArray=[[NSMutableArray alloc] initWithArray:[componentsSeparatedByString: @"-"]];
And each word will be stored in respective position from 0-n.
Try This. :)