gpt4 book ai didi

ios - 模态下的弹出/推送 View

转载 作者:行者123 更新时间:2023-11-29 04:39:29 26 4
gpt4 key购买 nike

我有一个向上滑动覆盖可见 View 的模态视图。基于模态上的按钮按下,我想弹出它覆盖的 View 并推送不同的 View ,以便当模态再次向下滑动时,新 View 可见。

实现这一目标的策略是什么?

最佳答案

从导航 Controller 堆栈中,您可以访问以前的 View Controller ,并且在操作时您可以更改该 Controller 的 View ,使用类似 -

NSMutableArray *activeControllerArray =  [self.navigationController.viewControllers mutableCopy];
// Replace your earlier view controller/view with new view controller/view , and then assign again the navigation controller's viewControllers

self.navigationController.viewControllers = activeControllerArray;

关于ios - 模态下的弹出/推送 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10605586/

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