This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UISearchBar+DetermineKeyboardType.m | |
// | |
// message [self.searchBar determineKeyboardType] to retreive current keyboard type | |
// | |
// Problem is explained here: http://tech.ustwo.com/2014/05/29/ios-uikeyboardtype-issue/ | |
// Most of the code is copied from https://github.com/martinstolz/UIKeyboardType-Fix-Demo | |
// few modification made to support iOS 10 && 9 | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to snapshot complete wkwebview, scroll webview itself inside a container view rather than scrolling webview's content | |
@property (strong, nonatomic) WKWebView* webView; | |
@property (strong, nonatomic) UIView *containerView; | |
- (void)setupWebview:(CGSize)size { | |
WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init]; | |
[configuration.userContentController addScriptMessageHandler:self name:@"interOp"]; |