Disabling keyboard in ios8 user keyboard does not work

I am having problems expanding a custom keyboard in ios8 using the keyboard rejection method.

I am calling using:

[self dismissKeyboard]; 

It compiles in order, but when I press the quit button, it crashes and opens a regular keyboard. In the console, I can only see the following lines:

2014-08-25 17: 38: 50.147 custom keyboards [2678: 5567685] plugin com.customkeyboards aborted 2014-08-25 17: 38: 51.248 customkeyboards [2678: 5567651] viewServiceDidTerminateWithError :: Error Domain = _UIViewServiceInterfaceErrorDomain Code = 3 "Operation failed to complete. (Error _UIViewServiceInterfaceErrorDomain 3.) "UserInfo = 0x7a8dd4c0 {Message = service interruption}

I use ios 8 beta 6 and run it in the emulator. The same thing happens on a device with the latest beta (ios5)

+5
source share
1 answer

For those with the same problem, here is the code that solved it! Good luck

 [self.view endEditing:YES]; self.inputView.frame = CGRectMake( 0, 0, 0, 0 ); self.view.frame = CGRectMake( 0, 0, 0, 0 ); [self.inputView removeFromSuperview ]; [self.view removeFromSuperview ]; for (UIView *v in [self.inputView subviews]){ [v removeFromSuperview]; } for (UIView *v in [self.view subviews]){ [v removeFromSuperview]; } [self dismissKeyboard]; 
0
source

Source: https://habr.com/ru/post/1201101/


All Articles