ios - Disable the Auto selection of text on UITextView by keyboard's auto correction -


i'm trying disable auto selection of text in uitextview, auto selection automatically collects text keyboard's auto correction.

whereas want keep auto correct on keyboard too, auto correction text should applied uitextview , if selects tapping on on auto correction tool bar.

enter image description here

here, can see in above image, 'paulm' automatically selected , shown related auto correction 'palm' on keyboard. i'm selecting @paulmkarcher above resultant filtered tableview unfortunately ends '@palm karcher' in uitextview. it's automatically fetching 'palm ' value auto correction, should selected tap only.

thanks in advance.

i'd guess have make smart implementation delegate metod textview:shouldchangetextinrange:replacementtext:

this documented in apple docs

the description method following:

asks delegate whether specified text should replaced in text view.

an example of simple implementation be; if word editing begins '@', never apply auto correct.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -