Separate words in string??? help please!

Discussion in 'iOS Programming' started by SpiffyChee, Jul 6, 2010.

  1. macrumors member

    Joined:
    Jul 22, 2005
    #1
    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?
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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.
     

Share This Page