diff --git a/src/ios/CDVKeyboard.m b/src/ios/CDVKeyboard.m index 9ad7d2d..3041f57 100644 --- a/src/ios/CDVKeyboard.m +++ b/src/ios/CDVKeyboard.m @@ -94,7 +94,7 @@ - (void)pluginInitialize object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification* notification) { - [weakSelf shrinkViewKeyboardWillChangeFrame:notification]; + [weakSelf performSelector:@selector(shrinkViewKeyboardWillChangeFrame:) withObject:notification afterDelay:0]; CGRect screen = [[UIScreen mainScreen] bounds]; CGRect keyboard = ((NSValue*)notification.userInfo[@"UIKeyboardFrameEndUserInfoKey"]).CGRectValue; CGRect intersection = CGRectIntersection(screen, keyboard);