0
我甚至试图在调用popToRootViewControllerAnimated之前实现一个延迟,但是这也没有好处。它只是不会被调用。为什么我的popToRootViewControllerAnimated没有被调用?
-(IBAction) btnSignOut{
[[self tabBarController]setSelectedIndex:0];
[[self navigationController]popToRootViewControllerAnimated:NO];//DOES NOT GET CALLED
Overview *overviewController = [[Overview alloc] initWithNibName:@"Overview" bundle:nil];
//Lets place OverView in navController
UINavigationController * navController = [[UINavigationController alloc] initWithRootViewController:overviewController];
// [[self navigationController] popToViewController:ComposeViewController animated:YES];
//Now lets display it
[self.tabBarController presentModalViewController:navController animated:YES];
[navController release];
[overviewController release];
}
什么是基类'的名称 - (IBAction为)btnSignOut'? – Jhaliya 2011-06-16 09:05:39
UIViewController ...放置在UINavigation根视图控制器中 – jini 2011-06-16 09:22:29
您需要告诉您如何将视图控制器推到导航控制器上。 – 2011-06-16 10:31:51