gpt4 book ai didi

iphone - 快速返回到 RootViewController

转载 作者:可可西里 更新时间:2023-11-01 06:19:52 25 4
gpt4 key购买 nike

有什么方法可以快速进入rootViewController?我想从堆栈中删除所有 View 并返回到 rootViewController,甚至不打扰它上面的 View 序列。

最佳答案

来自文档:

popToRootViewControllerAnimated:Pops all the view controllers on the stack except the root view controller >and updates the display.

- (NSArray *)popToRootViewControllerAnimated:(BOOL)animated

Parameters

animated:

Set this value to YES to animate the transition. Pass NO if you are setting >up a navigation controller before its view is displayed.

Return Value:

An array of view controllers that are popped from the stack.

关于iphone - 快速返回到 RootViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10039164/

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