Skip to content

Instantly share code, notes, and snippets.

@PanosJee
Created April 15, 2015 21:40
Show Gist options
  • Save PanosJee/68a53703c0c44a7efb8c to your computer and use it in GitHub Desktop.
Save PanosJee/68a53703c0c44a7efb8c to your computer and use it in GitHub Desktop.
Splunk MINT iOS web view
// 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