Disable "define" option in the keyboard, it seems to mess up the keyboard.

This commit is contained in:
Guillaume BIENKOWSKI 2014-02-21 17:09:04 +01:00
parent c0d4c3d7f0
commit 865c2c1513

View file

@ -26,4 +26,13 @@
[self sendActionsForControlEvents:UIControlEventEditingChanged];
}
-(BOOL)canPerformAction:(SEL)action withSender:(id)sender{
// disable "define" option, since it messes with the keyboard
if ([[NSStringFromSelector(action) lowercaseString] rangeOfString:@"define"].location != NSNotFound) {
return NO;
} else {
return [super canPerformAction:action withSender:sender];
}
}
@end