Tab bar with slide out menu

99封情书 提交于 2019-12-11 03:37:41

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/31695820/tab-bar-with-slide-out-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!