cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [08/43] ios commit: Added logs to show if you are using a WKWebView or UIWebView.
Date Sat, 07 Mar 2015 00:18:21 GMT
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 <shazron@apache.org>
Authored: Wed Aug 13 23:29:25 2014 -0700
Committer: Shazron Abdullah <shazron@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


Mime
View raw message