问题
I get deprecation warnings for invokeString in Main and App .m files. I haven't seen any posts on how to fix this. So far it's working ok, just curious.
self.viewController.invokeString = invokeString; <-'invokeString' is depcrecated
回答1:
[CB-853] Deprecate window.invokeString - use window.handleOpenURL(url) instead
http://mail-archives.apache.org/mod_mbox/incubator-callback-commits/201207.mbox/%3C20120716205424.998B414A2D@tyr.zones.apache.org%3E
回答2:
This really helped cause I couldn't figure out how much to comment out... drove me crazy.
http://iphonedevlog.wordpress.com/2012/09/24/phonegap-2-1-0-in-mac-os-x-mountain-lion-10-8-from-download-to-ios-app-store/
In MainViewController.m
comment out:
/* #pragma UIWebDelegate implementation
- (void) webViewDidFinishLoad:(UIWebView*) theWebView
{
... all ...
} */
and in AppDelegate.m
comment out:
// self.viewController.invokeString = invokeString;
来源:https://stackoverflow.com/questions/11616614/cordova-phonegap-2-0-ios