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

Commit

Permalink
Fix build error with cordova-ios-4.x (backwards compatible)
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Oct 28, 2015
1 parent 5f178e0 commit 25759bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ios/IonicKeyboard.m
Original file line number Diff line number Diff line change
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 25759bb

Please sign in to comment.