Idr*_*ris 4 uinavigationcontroller ios swift
所以我有一个简单的导航控制器,注册,点击完成,然后你去主页.问题是当你转到主页时,导航控制器就会出现.


正如您在上一张图片(主页)中看到的那样,导航栏仍然存在.当用户在第一张图像上按"完成"时,我self.performSegueWithIdentifier("loginTrue", sender: nil)
用来转到"主页".我试过用了
self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
Run Code Online (Sandbox Code Playgroud)
但似乎没有任何事情发生.那么总结一下,关于如何从"主页""解散"导航控制器的任何想法?谢谢!
use*_*284 17
尝试
self.navigationController?.popViewControllerAnimated(true)
Run Code Online (Sandbox Code Playgroud)
更新:Swift 4.2
self.navigationController?.popViewController(animated: true)
Run Code Online (Sandbox Code Playgroud)
ViewController尝试仅对 LoginView使用 a 。然后使用self.dismisswithPerformSegue到达NavigationController.
| 归档时间: |
|
| 查看次数: |
7907 次 |
| 最近记录: |