我想在新的ViewController中添加后退按钮。快速返回按钮不起作用
我打开此视图控制器从显示segue的标签栏视图。
我在顶部实施了项目栏并向viewcontoller添加了操作。
self.dismissViewControllerAnimated(true, completion: nil);
,并在其中
故事板 https://drive.google.com/file/d/0B93rd-pg4by8Q0tNWXMwTXlVanM/view
我想在新的ViewController中添加后退按钮。快速返回按钮不起作用
我打开此视图控制器从显示segue的标签栏视图。
我在顶部实施了项目栏并向viewcontoller添加了操作。
self.dismissViewControllerAnimated(true, completion: nil);
,并在其中
故事板 https://drive.google.com/file/d/0B93rd-pg4by8Q0tNWXMwTXlVanM/view
如果您正在使用SWIFT添加以下代码3你有self.dismiss(animated: true, completion: nil)
self.navigationController?.popViewController(animated: true)
更换self.dismissViewControllerAnimated(true, completion: nil);
你必须做确定您是否推动视图或呈现视图。如果你正在推动的观点,那么你必须加入这一行
self.navigationController .popViewController弹出它(动画:真)?
我使用SWIFT 2 – Ramesh