0
我在我的iPhone应用程序中使用SWRevealViewController。如何删除SWRevealViewController?
成功登录后,我从我的viewcontroller创建SWRevealViewController。
profileView *frontViewController = [[profileView alloc] init];
RearViewController *rearViewController = [[RearViewController alloc] init];
UINavigationController *frontNavigationController = [[UINavigationController alloc] initWithRootViewController:frontViewController];
UINavigationController *rearNavigationController = [[UINavigationController alloc] initWithRootViewController:rearViewController];
SWRevealViewController *revealController = [[SWRevealViewController alloc] initWithRearViewController:rearNavigationController frontViewController:frontNavigationController];
revealController.delegate = self;
frontViewController.user_id = [defaults objectForKey:@"userid"];
appDelegate.user_id = [defaults objectForKey:@"userid"];
[self.navigationController pushViewController:revealController animated:YES];
现在我想注销并返回到viewcontroller。我试过poptoRootviewcontroller,但没有工作。这个怎么做 ?