gpt4 book ai didi

ios - 带滑出菜单的标签栏

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:13:46 29 4
gpt4 key购买 nike

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];
}
}

如果我从我的 RearViewController 单击返回,ViewController 不会出现,它只是偷看然后熄灭(再次显示 RearViewcontroller)。

图2

enter image description here

最佳答案

我给你解决你的问题。

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

谢谢

关于ios - 带滑出菜单的标签栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31695820/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com