后视控制器.m
-(IBAction)unwindFromViewController:(UIStoryboardSegue *)segue
{
if ([segue.identifier isEqualToString:@"unwindToViewController"]) {
ViewController *detail = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewController"];
[self presentViewController:detail animated:YES completion:nil];
}
}
如果我从未显示RearViewController
的ViewController
位置单击返回,它只会窥视并熄灭(再次显示RearViewcontroller
)。
图片2