UIViewController 从 PushViewController 反弹
让我快速介绍一下我所拥有的:
我有一个可以深入 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的代码中丢失了 -popViewControllerAnimated 。
刚刚删除它,它又可以工作了。
I had a lost -popViewControllerAnimated in my code.
Just removed that and it's working again.