View Full Version : Separate words in string??? help please!

Jul 6, 2010, 03:11 AM
I'm trying to take a string of an input sentence and separate the string into single words. Once the words are separated I want to display one at a time. How can i do this?

So far I've discovered that i can use the method componentsSeparatedByString but this still doesn't really get me anywhere. I'm pretty new to objective C and would appreciate your help! Any points to the right direction would be great :)

or should i use NSScanner?

Jul 6, 2010, 03:59 AM
compontentsSeparatedByString: should do what you want. Why don't you post your code, explain, in detail what you think it's doing and what it's actually doing.