cursor position in UITextView

Discussion in 'iOS Programming' started by assayag, Nov 2, 2009.

  1. assayag macrumors newbie

    Nov 2, 2009
    Hi everybody.

    I have some UITextView in which I am writing multi-lines text.
    I'd like to find the caret/cursor coordinates (x,y) relative to view.

    UITextView selectedRange method gives only the position of cursor within whole string but since there is no mapping between document position and screen coordintates, this information is not useful.

    Any suggestion?

    Thanks for help

Share This Page