我正在尝试构建一个应用程序。它有很多页面,每个页面都有一个名为首页的导航项。
点击它会回到首页,即首页。我不想实例化ViewController。我希望拳头初始化页面会出现。我该怎么做。我不想关闭页面。因为需要多次点击才能返回首页
我试过这个
self.dismiss(animated: true, completion: {});
self.navigationController?.popViewController(animated: true);
最佳答案
self.navigationController?.popToRootViewController(animated: true)
弹出堆栈中除 Root View Controller 之外的所有 View Controller 并更新显示。
关于ios - 我怎样才能在ios中进入应用程序起始页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46521077/