作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在构建一个 iOS 应用程序。
下面解释了我在做什么-
我需要的是堆栈操作应该像 - C -> A 一样执行。
为此,我必须从堆栈中弹出 B。如何从堆栈中弹出 B。
最佳答案
如果你的意图是总是回到堆栈上的第一个 View Controller ,你可以使用
[self.navigationController popToRootViewControllerAnimated:YES];
如果你想弹出 X
个 View Controller ,检查来自 SO 的这个答案:How do I pop two views at once from a navigation controller?
关于ios - 如何在 IOS 中弹出堆栈?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30304026/
我是一名优秀的程序员,十分优秀!