各位不应利用先头控制器回头,而应利用与先头控制器相关的活动,而应放弃目前的观察控制器(如果其轮式是代号),或从导航控制器(如果其排气是推导的),而以前的控制器将自动显示。
For example, if the modal segue that goes back was being performed when you pressed a button on your login screen, you delete the segue from the storyboard and on the touch up inside event of the button you link with your action that, upon successful login will call:
[self dismissViewControllerAnimated:YES completion:nil];
在故事板上,你将右边点击 but子,把在发送活动中的触角拖到观察控制器现场的第一对手。 这将执行当你进行先期过渡时所执行的逆向过渡。 你们可以为此使用一种模式,无需使用导航控制器。
If you pushed the login view onto the navigation controller, then you have to pop it from the stack (if going back to the previous view). Use one of these:
[[self navigationController] popViewControllerAnimated:YES]; // goes back to previous view
[[self navigationController] popToViewController: myViewControllerAfterLogin animated:YES]; // goes back to specific view on stack.
[[self navigationController] popToRootViewControllerAnimated:YES]; // goes back to first view on the stack
transition然过渡应扭转gue头上所用的过渡类型,如果你不赞成这种观点,就会 cur倒。