我有一个应用程序,它的 Root View 是 4 个 TableView 的菜单,用户通过选择一个加载另一个 subview 的单元格来设置搜索查询,所以基本结构如下所示
Root View
- Parent View (search view)
--Sub View (user selects variables here to fill search parameters of the parent view
但是其中一个父 View 搜索参数要求将另一个 subview 推送到导航堆栈上,因此它看起来像
Root View
- Parent View (search view)
--Sub View (user selects variables here to fill search parameters of the parent view
---Sub View (related values to the previous subview i.e. Model / sub model)
我想知道是否有办法从这个 subview 弹出回到父 View .. 我知道您可以弹出单个 View 或弹出回 Root View ,但这次我想弹出两个 subview ...这可能吗?
最佳答案
popToViewController:animated:
弹出 View Controller ,直到指定的 View Controller 位于导航堆栈的顶部。
- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
关于iphone - 从导航 Controller 弹出多个 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8828960/