You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2015/03/07 01:18:21 UTC

[08/43] ios commit: Added logs to show if you are using a WKWebView or UIWebView.

Added logs to show if you are using a WKWebView or UIWebView.


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/89555725
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/89555725
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/89555725

Branch: refs/heads/4.0.x
Commit: 89555725cedd25b45e2d69953203cb23ead05fd6
Parents: 1e84e30
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Aug 13 23:29:25 2014 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Aug 13 23:29:25 2014 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVViewController.m | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/89555725/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m
index d5aeb89..0bde78e 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -433,11 +433,13 @@
             configuration.userContentController = userContentController;
 
             cordovaView = [[WKWebView alloc] initWithFrame:bounds configuration:configuration];
+            NSLog(@"Using a WKWebView");
             _webViewUIDelegate = [[CDVWebViewUIDelegate alloc] initWithTitle:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]];
             ((WKWebView*)cordovaView).UIDelegate = _webViewUIDelegate;
 #endif
     } else {
         cordovaView = [[UIWebView alloc] initWithFrame:bounds];
+        NSLog(@"Using a UIWebView");
     }
 
     return cordovaView;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org