Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 2 个视图连接到 1 个视图,1 个视图是推送的,另一个是模态的。是否可以获得segue标识符并执行dimiss或popview?
谢谢。
除非您自己存储它,否则您无法回到推送/呈现给您的 segue。
但是,您可以查看您的presentingViewController和navigationController属性。如果您被推动,presentingViewController则为 nil 且navigationController为非 nil。如果你被介绍,presentingViewController是非零并且navigationController是零。
presentingViewController
navigationController