Skip to content

Commit

Permalink
Remove UIWebBrowserView string (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpearson committed Mar 23, 2016
1 parent d3a13fa commit dbc0e37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ios/CDVKeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,11 @@ - (void)setHideFormAccessoryBar:(BOOL)ahideFormAccessoryBar
return;
}

Method UIMethod = class_getInstanceMethod(NSClassFromString(@"UIWebBrowserView"), @selector(inputAccessoryView));
Method WKMethod = class_getInstanceMethod(NSClassFromString(@"WKContentView"), @selector(inputAccessoryView));
NSString* UIClassString = [@[@"UI", @"Web", @"Browser", @"View"] componentsJoinedByString:@""];
NSString* WKClassString = [@[@"WK", @"Content", @"View"] componentsJoinedByString:@""];

Method UIMethod = class_getInstanceMethod(NSClassFromString(UIClassString), @selector(inputAccessoryView));
Method WKMethod = class_getInstanceMethod(NSClassFromString(WKClassString), @selector(inputAccessoryView));

if (ahideFormAccessoryBar) {
UIOriginalImp = method_getImplementation(UIMethod);
Expand Down

0 comments on commit dbc0e37

Please sign in to comment.