gpt4 book ai didi

iphone - popToRootViewController动画问题

转载 作者:行者123 更新时间:2023-12-03 20:16:47 25 4
gpt4 key购买 nike

我的 iPhone 应用程序中有一个 UINavigationController 以向下钻取的方式控制 View 。在出现“重新开始”按钮之前,我会经过 4 个 View Controller ,我希望该操作能够将用户发送回 View 层次结构的开头。

[self.navigationController popToRootViewControllerAnimated:YES];

但看起来它只是在当前 View Controller 之上带来了一个新的 rootviewcontroller。

有没有办法将 View 弹出回到导航向下钻取的最开始处?

任何帮助都会很棒!

非常感谢,布雷特

最佳答案

这里还发生了其他事情。我在我的应用程序中使用了 popToRootViewControllerAnimated,它的作用正是您所追求的。

关于iphone - popToRootViewController动画问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3286097/

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