Advertisement
Guest User

Untitled

a guest
May 26th, 2015
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. // Initialize WebView programmatically
  2. MintUIWebView *webView = [[MintUIWebView alloc] init];
  3.  
  4. // Or initialize WebView from Interface Builder
  5. //Go to the identity inspector, and change the class from UIWebView to MintUIWebView
  6.  
  7. // Enable Hybrid
  8. [webView setDelegate:self];
  9.  
  10. //MintWKWebView
  11. //WKWebView has been extended to support hybrid through this control.
  12. //If the developer wants to use the hybrid functionality, they should create an instance of MintWKWebView.
  13.  
  14. // Initialize WebView
  15. WKWebViewConfiguration *webConfig = [[WKWebViewConfiguration alloc]init];
  16. MintWKWebView *webView = [[MintWKWebView alloc] initWithFrame:self.view.frame configuration:webConfig];
  17.  
  18. // Enable Hybrid
  19. webView.navigationDelegate = self;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement