cordova/phonegap 2.0 iOS

大兔子大兔子 提交于 2020-01-20 03:28:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!