gpt4 book ai didi

ipad - 应用程序因弹出窗口而终止

转载 作者:行者123 更新时间:2023-12-02 04:15:05 25 4
gpt4 key购买 nike

我正在开发 iPad 应用程序。根据要求在 SplitviewController 的详细信息页面上,我在导航栏上添加了一个自定义的 UIBarButtonItem 左栏按钮。

现在在纵向模式下,当我单击此按钮时出现以下错误

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Popovers cannot be presented from a UIBarButtonItem that is not in a toolbar or navigation bar already.'



有人可以帮忙吗????

谢谢,

萨加尔

最佳答案

您很可能没有正确声明 UIButtonItem 变量。确保它在您的代码中到处匹配。

欲了解更多信息,请查看我的 blog post .

关于ipad - 应用程序因弹出窗口而终止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3246360/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com