Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Initialize WebView programmatically
- MintUIWebView *webView = [[MintUIWebView alloc] init];
- // Or initialize WebView from Interface Builder
- //Go to the identity inspector, and change the class from UIWebView to MintUIWebView
- // Enable Hybrid
- [webView setDelegate:self];
- //MintWKWebView
- //WKWebView has been extended to support hybrid through this control.
- //If the developer wants to use the hybrid functionality, they should create an instance of MintWKWebView.
- // Initialize WebView
- WKWebViewConfiguration *webConfig = [[WKWebViewConfiguration alloc]init];
- MintWKWebView *webView = [[MintWKWebView alloc] initWithFrame:self.view.frame configuration:webConfig];
- // Enable Hybrid
- webView.navigationDelegate = self;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement