UINavigationController意外的推送行为

问题描述 投票:0回答:1

从我的表格单元格中轻击会通过我的UINavigationController触发UIViewController推入,但是动画不'正确',因为它不流畅,并且解雇效果不正确。

without tapped tabbar

after tapping the notifications or settings tabs

GIF-https://imgur.com/a/xKzdhlR

奇怪的是,如果我在单击表格单元格之前点击另一个选项卡栏项,则该错误会消失。为了安全起见,我在情节提要上安装了视图控制器,这就是初始化视图控制器的方式:

guard let destinationViewController = mainboard.instantiateViewController(withIdentifier: "postsview") as? ExpressionsViewController else { print("couldn't be found :("); return }
self.navigationController?.pushViewController(destinationViewController, animated: true)

呈现中的viewcontroller是一个嵌入在pageviewcontroller中的tableviewcontroller,尽管这不应该成为问题,因为我有委托处理控制器的推送。

ios swift xcode uinavigationcontroller
1个回答
0
投票

确定您将控制器推到右侧的标签栏导航吗?

可能是您只是在推向错误的导航控制器

© www.soinside.com 2019 - 2024. All rights reserved.