How to change a string to UPCASE or lowercase in xcode? thanks!

Discussion in 'iOS Programming' started by xingworld, Jan 25, 2011.

  1. macrumors newbie

    Joined:
    Jan 24, 2011
    #1
    How to change a string to UPCASE or lowercase in xcode? thanks!
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Assuming you have an NSString, please read the class reference for it. There are two instance methods it has that are specifically built for what you're looking for.

    P.S. And by "in Xcode", we have to assume you mean "using Objective-C". If not, you should let us know. Remember, accuracy is important, both in programming and getting help in a programming forum.
     
  3. thread starter macrumors newbie

    Joined:
    Jan 24, 2011
    #3
    Thank you very much.
    I'm sorry that I don't express my meaning accurately.
    My meaning is converting a selected text to upcase or lowercase by some operation/command in Xcode IDE.
    Because I have not find a way to convert selected text into upcase or lowercase in operation menu.
     
  4. Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #4
    By default "lowercase word" and "uppercase word" are unbound in Preferences -> Key Bindings -> Text Key Bindings. Just create a new set and bind them to something.

    B
     
  5. thread starter macrumors newbie

    Joined:
    Jan 24, 2011
    #5
    Thank you, thank you very much. I find it and set it successfully.
    :D
     

Share This Page