gpt4 book ai didi

iphone - 从导航 Controller 堆栈中删除所有 Viewcontroller 的最佳方法

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

我在导航 Controller 堆栈中有一些 View Controller ,因此我想删除除父 Controller 之外的所有 View Controller 。删除导航 Controller 中所有 View Controller 的最佳方法是什么?

谢谢。

最佳答案

使用[[self navigationController] popToRootViewControllerAnimated:YES];

它应该立即移动到rootviewcontroller

关于iphone - 从导航 Controller 堆栈中删除所有 Viewcontroller 的最佳方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13055998/

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