Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

donaghy

macrumors member
Original poster
Aug 6, 2009
49
0
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.