Is there any easy way to get the string index in an NSString if I have the line number and column number?
For example:
myString =
abc
def
ghi
[myString getIndexFromLineNumber:2 columnNumber:1] should return the index of h in myString, so in this example it should be 10 (assuming new lines are 1 char long).