Search code examples
iosobjective-ckeyboardaddsubviewfirst-responder

iOS dismiss keyboard but keep editing


I have a UITextView that is being edited and I want to add a custom keyboard... is there any way to dismiss the keyboard but leave the textView in edit mode so the blue cursor keeps flashing? Or better yet is there any way to put a view ontop of the keyboard?


Solution

  • try this

    uitextfieldView.inputView = [[UIView new] autorelease];

    the system keyboard view not shows and it keeps the cursor as you editing.

    or you can hide keyboard by sliding it off-screen

    frame.origin.y = (keyboard.frame.origin.y - 264);
    keyboard.frame = frame;