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 2014/11/01 00:44:07 UTC
[47/50] 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/1c1e9c30
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/1c1e9c30
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/1c1e9c30
Branch: refs/heads/wkwebview
Commit: 1c1e9c30d7bed52d8d9dce93717e03f587df26c4
Parents: b3fbd85
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Aug 13 23:29:25 2014 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Oct 31 15:37:43 2014 -0700
----------------------------------------------------------------------
CordovaLib/Classes/CDVViewController.m | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/1c1e9c30/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m
index 6730239..4f81e92 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -470,11 +470,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