Tab bar with slide out menu

2019-07-20 18:29发布

My Storyboard

RearViewController.m

-(IBAction)unwindFromViewController:(UIStoryboardSegue *)segue
{
    if ([segue.identifier isEqualToString:@"unwindToViewController"]) {
      ViewController *detail = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewController"];
        [self presentViewController:detail animated:YES completion:nil];
}
}

If I click back from my RearViewController the ViewController is not presented instead it just peeps and goes off(again shows RearViewcontroller).

Image2

enter image description here

1条回答
Bombasti
2楼-- · 2019-07-20 19:01

I give you a solution for your question.

      1.First remove triggered segue connection.
      2.After that give push segue connection to Back to your required view controller.
      3.Click Back Button Segue and give Identifier name as "goToMainViewController" or whatever you want just give there.Also segue should be "push".

Thank You

查看更多
登录 后发表回答