带滑出菜单的标签栏 [英] Tab bar with slide out menu

查看:99
本文介绍了带滑出菜单的标签栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RearViewController.m

RearViewController.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).

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

图片2

推荐答案

我为您的问题提供了解决方案.

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".

谢谢

这篇关于带滑出菜单的标签栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆