我已经实现了UINavigationControllerDelegate方法:
public func navigationController(navigationController: UINavigationController, animationControllerForOperation operation: UINavigationControllerOperation, fromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? { }
因为我必须设置应用程序状态而且只有"事件"能够捕获Pop transition
UINavigationController
的{{1}}就是这种方法。一切正常,但就功能而言,但现在我的向后滑动操作不起作用(只按后退按钮工作)。
在这个方法结束时,我已经返回了nil,因为我不知道它在做什么,但显然它影响了向后滑动功能。
是否有任何默认UIViewControllerAnimatedTransitioning
我可以返回以具有向后滑动功能?
感谢。
答案 0 :(得分:0)
我切换到这个委托方法:
$_SESSION['MSG']="Your data is saved";
Header( 'Location: Database.php');
exit;
//now in the database.php page write at the top
<?php
if(isset($_SESSION['MSG'])){
echo $_SESSION['MSG'];
}
?>//its very simple,you can also format the message by using different html attributes
并对其进行自定义,以便我可以确定其弹出操作是否正确(跟踪最后一些视图控制器。