Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Commit

Permalink
Merge pull request #148 from shazron/cordova-ios-4.x
Browse files Browse the repository at this point in the history
Fix build error with cordova-ios-4.x (backwards compatible)
  • Loading branch information
tlancina committed Nov 19, 2015
2 parents 5f178e0 + 25759bb commit 79ee454
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ios/IonicKeyboard.m
Expand Up @@ -68,14 +68,14 @@ - (BOOL)hideKeyboardAccessoryBar {
}

- (void)setHideKeyboardAccessoryBar:(BOOL)hideKeyboardAccessoryBar {
if (hideKeyboardAccessoryBar == _hideKeyboardAccessoryBar) {
if (hideKeyboardAccessoryBar == _hideKeyboardAccessoryBar || ![self.webView isKindOfClass:[UIWebView class]]) {
return;
}
if (hideKeyboardAccessoryBar) {
self.webView.hackishlyHidesInputAccessoryView = YES;
((UIWebView*)self.webView).hackishlyHidesInputAccessoryView = YES;
}
else {
self.webView.hackishlyHidesInputAccessoryView = NO;
((UIWebView*)self.webView).hackishlyHidesInputAccessoryView = NO;
}

_hideKeyboardAccessoryBar = hideKeyboardAccessoryBar;
Expand Down

0 comments on commit 79ee454

Please sign in to comment.