Merge pull request #3 from yoshisuga/master

iOS 8 orientation crash fix
This commit is contained in:
Olivier Goguel 2016-03-29 19:06:15 +02:00
commit 4d439160db

View File

@ -2183,8 +2183,10 @@ int x_adb_get_keypad_y()
debug_printf("setInputAccessoryView:accessView");
// IOS8
[self.accessView removeFromSuperview];
[self.textField setInputAccessoryView:self.accessView];
if ( !isHardwareKeyboard() ) {
[self.accessView removeFromSuperview];
[self.textField setInputAccessoryView:self.accessView];
}
[self.textField becomeFirstResponder];
}