0
我解释一下情况: 我有一个NavigationController + TableViewController,当我点击一个单元格时,我做了一个performSegueWithIdentifier去另一个视图。我通过故事板完成了这个。导航控制器创建2个视图而不是1
[self performSegueWithIdentifier:@"goToCamera" sender:self];
在这个视图中,我需要推动包含摄像头覆盖的视图。
[self.navigationController pushViewController:viewController animated:NO];
这工作得很好,但我的问题是,导航控制器似乎产生了2次,当我想回去TableViewController,我需要点击2次,第一次按钮的名称为“返回“和按钮的名称是第二次” myTableView“
我注意到,当我设置动画的attribut‘YES’,我得到这个错误信息:
nested push animation can result in corrupted navigation bar
这个问题似乎在同一时间有两次推进但是它不在我的情况下出现。