Ultimately, I would like to know the position of the last character in a UITextView. I was able to find out the y position by using the following:
CGSize size = [textView.text sizeWithFont:textView.font constrainedToSize:CGSizeMake(textView.frame.size.width-16, 10000) lineBreakMode:UILineBreakModeClip];
However in order to get the x position I need to get the text from the last line in the textview. I tried removing a character at a time from textView.text until size.height changes to achieve that effect, but I realize that does not always equal to what I want when linebreak is taken into consideration.
Any suggestions anyone? I've been spending a whole day trying to figure this one out...