为什么我的popToRootViewControllerAnimated没有被调用?

时间:2011-06-16 08:57:10

标签: iphone ios

我甚至尝试在调用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];


}

1 个答案:

答案 0 :(得分:0)

似乎[self navigationController]不包含任何弹出视图