Edd
Edd

Reputation: 975

UITextVew tap in the middle of a word and place the cursor there

In the common behavior of UITextVew if the user taps in the middle of a word the cursor gets placed at the beginning of that word, or in other cases it selects the whole word.

I would like to entirely disable this and just let the user tap anywhere in the UITextVew and place the cursor just there.

Also I would appreciate to know if this is possible too for a UIWebView with contentEditable enabled.

Thanks in advance.

Upvotes: 2

Views: 250

Answers (1)

dasdom
dasdom

Reputation: 14073

To get this behavior you have to build the text view yourself using core text. Or your only support iOS7. There you will have TextKit.

Upvotes: 1

Related Questions