Get Character code/Code point of input character

Discussion in 'iOS Programming' started by donaghy, Sep 15, 2009.

  1. donaghy macrumors member

    Joined:
    Aug 6, 2009
    #1
    Is there an existing function that will find the character code/code point of an input character? e.g. A = 65, a = 97, etc.

    thanks.
     
  2. rowsdower macrumors 6502

    Joined:
    Jun 2, 2009
  3. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #3
    I assume you mean from a textview or textfield.

    You get the input values as an NSString using the text property of those classes. You can take apart the string using standard string methods. If you need to chop up a string best is to build substrings for a particular range of the string and use those strings for further uses.
     

Share This Page