每当用户收到推送通知时,我都需要将用户移动到导航 Controller Root View 。
在我的应用程序中有侧边菜单。导航 Controller 也有详细 View 。
因此,如果用户打开了侧边菜单 View ,那么我该如何将用户移动到作为我的应用程序主屏幕的 navigationController 的 Root View 。
也从详细 View 到 Root View ,与任何 Controller 无关。
请推荐
谢谢
最佳答案
你可以使用任何一个
[self.navigationController popToRootViewController:YES];
或者
[self dismissViewControllerAnimated:YES];
关于ios - 从应用程序中的任何位置移动到 Root View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47631826/