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.
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
Post a Comment