Assume that I have a String like this:
hello world this may have lots of sp:ace or little space
I would like to seperate this
NSString * mainString = @"Today is your day"; NSArray * array = [mainString componentsSeparatedByString:@" "]; NSLog(@"Expected string is : %@",array);