在开发中:用[self presentViewController:VC animated:YES completion:nil];实现跳转,多次跳转后,直接返回第一个。
例如:
A presentViewController B
B presentViewController C
C 直接回到A:

返回第一个视图核心代码如下:
[self.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil];
本文详细介绍了如何在iOS开发中使用[self.presentViewController:]方法实现多级页面跳转,并提供了一个关键代码片段用于直接从最后一个页面返回到初始视图。

被折叠的 条评论
为什么被折叠?



