0

i have a tabbar and in one viewController there is a button. When the user presses the button, i would like to let a view of a navController with a tableView as rootView appear animated.
but there is a small empty stripe above the navigationbar.

-(void)pressButton{
    UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:tableViewController];
    [[self view] addSubview:[navController view]];
}

something like this... it would be even greater if the new view overlaps the tabBar as well...

1 Answers1

0

i posted this question too fast.... here is the answer:

-(void)pressButton{
   UINavigati.....
   [self presentModalViewController:navController animated:YES];
   [navController release];
}