iosuikituikeyboarduiinputviewcontroller

iOS Custom keyboard can't return focus to app's textfield


I'm working on a custom keyboard for iOS which will have its own search field (similarly implemented by PopKey).

My keyboard's textfield is able to take the focus with becomeFirstResponder and I'm able to give it up by using resignFirstResponder. However after I resign focus, the host app has a difficult time retaking focus despite touching the form. The app's textfield will still show the text cursor blinking.

Any ideas? Thanks


Solution

  • The solution is a hack, as of right now you can't really give the host app its focus back.