0

我有 tabBar 应用程序,其中我在 SignViewController 上添加了选项卡我在我的设置选项卡中有 3 个不同的选项卡我有 logOut 按钮而不是按钮单击我想弹出选项卡栏并跳回我的 SignViewController。任何人都可以帮助解决这个小问题请

4

2 回答 2

1

我认为您只需要了解您在做什么的应用程序流程即可。

首先,您正在使用rootviewcontroller.

当您获得登录成功时,您只需分配rootviewcontroller = tabbarcontroller.view,对吗?

所以你需要的是,当你想从应用程序中注销时,只需将相同的 rootview 分配给 main rootviewcontroller。无需做任何事情。

或者,如果您要添加subviews到窗口,则使用添加和删除方法,例如

[self.window addSubview:rootview];
[tabbar removefromSuperview];

我希望这能帮到您。

于 2012-05-26T12:05:44.333 回答
0

使用 SignviewController 作为根导航。然后你可以使用方法

    [self.navigationController popToRootViewControllerAnimated:YES];
    [self.navigationController popToViewController:signViewController animated:YES];
于 2012-05-26T11:27:30.157 回答