微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Cordova iOS ObjectiveC 插件

如何解决Cordova iOS ObjectiveC 插件

有人尝试构建 Cordova 插件吗?我构建了一个并遇到了一个问题。我尝试呈现动态导航视图,但收到异常:

No visible @interface for 'GsaPaymentPlugin' declares the selector 'presentViewController:animated:completion:'

我的代码

 UINavigationController *modalNav = [[UINavigationController alloc] initWithRootViewController:viewController];
    
    if (UI_USER_INTERFACE_IdioM() == UIUserInterfaceIdiomPhone) {
        modalNav.modalPresentationStyle = UIModalPresentationFullScreen;
    } else { // Show as Form on iPad
        modalNav.modalPresentationStyle = UIModalPresentationFormSheet;
    }

    [self presentViewController:modalNav animated:YES completion:NULL];

有人知道这个异常是什么意思吗?在本机应用程序中一切正常。

非常感谢您的帮助!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。