Получить координаты X и Y слова в UITextView

Я спросил разработчика (TwoLivesLeft, создателей Codea), как они делают подсветку синтаксиса в своем приложении. Он ответил :

@TD2 the Codea editor is implemented using a UITextView. The highlighting is done by overlaying subviews in the appropriate positions — usually UILabels. They are dequeued from a re-use pool, similar to the way UITableViewCells work. During scrolling, the lines requiring re-highlighting pull markers out of the pool and lines that have moved off screen dump their markers back into the pool.

Может кто-нибудь объяснить, как я мог бы получить х и у определенного слова?

Ответы на вопрос(2)

Ваш ответ на вопрос