objective c - iOS hide default keyboard and open custom keyboard -


i have uitextview, when user taps on uitextview need hide default keyboard. have done,

 [mytextview seteditable: no]; 

so keyboard not shown, here have created custom view uibutton, need show uiview when user taps on uitextview, have done,

textviewdidbeginediting{  //here have added uiview subview   } 

but method not working because of,

[mytextview seteditable: no]; 

and need close uiview when user clicks close button inside uiview

you should using resignfirstresponder instead of setting uitextview not editable. hide system keyboard.

 [mytextview resignfirstresponder]; 

if want use different view keyboard system provided 1 set inputview on uitextview custom view want used in place of system keyboard.

mytextview.inputview = mycustomview; 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -