【发布时间】:2013-12-09 16:24:38
【问题描述】:
我在我的 iPhone 应用中使用SWRevealViewController。
成功登录后,我正在从我的视图控制器创建 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];
现在我想退出并返回视图控制器。我尝试了 poptoRootviewcontroller,但没有工作。如何做到这一点?
【问题讨论】:
标签: ios iphone objective-c ipad slider