ll木木彡木木彡ll 2016-08-22 07:52 采纳率: 0%
浏览 3048

ios 跳转并关闭之前所有的界面

我想做一个注销的功能,登陆>主页>设置>注销>登陆;
当注销的时候就把包括设置以内的控制器全kill掉;
android里有跳转的时候返回最顶层的方法,不知到ios里是否也有这样的方法?
求大神指教,或者有其他方式实现注销这样的功能也不妨指点一下。

  • 写回答

1条回答 默认 最新

  • Lynn_1992 2016-08-22 08:10
    关注

    LoginController *vc =
    [[LoginController alloc] initWithNibName:@"LoginController"
    bundle:nil];
    UINavigationController *nc =
    [[UINavigationController alloc] initWithRootViewController:vc];
    [self presentViewController:nc
    animated:YES];

    评论

报告相同问题?