How to find a pixel-positon of a cursor in UITextView?
I'm developing a simple writing app for iPad. I'm trying to compute the pixel-position of the cursor in UITextView . I spend a few weeks to design this, but I still couldn't figure out to do it. In stackoverflow, Tony wrote one good algorithm to find the pixel-position of the cursor. Pixel-Position of Cursor in UITextView I implemented this with a little modification, and it almost works that it gives the correct pixel-position of the cursor. However, it only works with English alphabets. If there is Chinese or Japanese character at the end of line, UITextView performs character-wrapping,