UIViewController 从 PushViewController 反弹

发布于 2024-12-28 18:08:26 字数 410 浏览 4 评论 0原文

让我快速介绍一下我所拥有的:

我有一个可以深入 3 层的 navigationController。

从第一级和第二级我可以发送消息

[self.navigationController pushViewController:[PlayerViewController playerSingleton] animated:YES];

如果我从第一级这样做,它会毫无问题地推送 PlayerViewController 的视图。它从右向左滑动没有任何问题。

但是,如果我尝试从 navigationController 中的第二级视图进行推送,它会像另一个视图一样滑动,但随后又滑回来!

我已经仔细检查过是否有任何代码明确说明了这一点,但没有。

有什么想法吗?

Let me give a quick briefing of what I have:

I have a navigationController that could go 3 levels deep.

From the first and the second level I'm able to message

[self.navigationController pushViewController:[PlayerViewController playerSingleton] animated:YES];

If I do that from the first level it pushes the PlayerViewController's view with no problem. It slides from the right to the left with no problems.

But, if I try to push from a second level view in navigationController it slides just like the other one but then it slides back!

I've double checked if it was any code explicitly saying this but there's none.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

年少掌心 2025-01-04 18:08:26

我的代码中丢失了 -popViewControllerAnimated 。

刚刚删除它,它又可以工作了。

I had a lost -popViewControllerAnimated in my code.

Just removed that and it's working again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文