cordova/phonegap 2.0 iOS

后端 未结 2 1701
北海茫月
北海茫月 2020-12-16 04:18

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.

         


        
相关标签:
2条回答
  • 2020-12-16 04:42

    [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

    0 讨论(0)
  • 2020-12-16 04:44

    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;
    
    0 讨论(0)
提交回复
热议问题