问题描述
有人尝试构建 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 (将#修改为@)