Created
April 15, 2015 21:40
-
-
Save PanosJee/68a53703c0c44a7efb8c to your computer and use it in GitHub Desktop.
Splunk MINT iOS web view
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
// 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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment