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

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -