custom-keyboard

Custom Keyboard extension with UITextField

拥有回忆 提交于 2019-11-27 16:57:08
问题 I have custom keyboard extension with UITextField in it. I am able switch to UITextField 's text input, but cannot switch back to self.textDocumentProxy . Does anybody know, how to do something like [self.textDocumentProxy becomeFirstResponder] ? (By the way, it looks like "GIF Keyboard" app provides such possibility) 回答1: I've implemented next workaround for this: My textFied inherits from UITextField . UserInteraction disabled to prevent it from becomeFirstResponder (because you are not

How to detect Orientation Change in Custom Keyboard Extension in iOS 8?

谁说胖子不能爱 提交于 2019-11-27 04:16:06
问题 In Custom Keyboard Extension , we can't use `didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation` and sharedApplication . I need to detect portrait or landscape in keyboard when rotate. How can i detect when orientation change in Custom Keyboard extension? 回答1: In order to update your custom keyboard when the orientation changes, override viewDidLayoutSubviews in the UIInputViewController . As far as I can tell, when a rotation occurs this method is always

A Swift example of Custom Views for Data Input (custom in-app keyboard)

ぃ、小莉子 提交于 2019-11-26 06:04:50
问题 Goal I want to make a custom keyboard that is only used within my app, not a system keyboard that needs to be installed. What I have read and tried Documentation App Extension Programming Guide: Custom Keyboard Custom Views for Data Input The first article above states: Make sure a custom, systemwide keyboard is indeed what you want to develop. To provide a fully custom keyboard for just your app or to supplement the system keyboard with custom keys in just your app, the iOS SDK provides