A great way of placing a new view over the top of a TabBarController etc which uses the whole screen (except for the status bar is there is one) so it looks as though the tab bar etc has gone.

Typical Use


    //Display modal view
    #ViewController_iPhone *vc1 = [[#ViewController_iPhone alloc] init];
    [self presentModalViewController:vc1 animated:YES];
    [vc1 release];

Do It With A Tab Bar Controller


- (BOOL)tabBarController:(UITabBarController *)ptabBarController shouldSelectViewController:(UIViewController *)pviewController
{

	//----- DISPLAY A MODAL VIEW OVER THE TOP OF US FOR SPECIFIC VIEWS -----
    if (pviewController == [viewControllers objectAtIndex:1])		//Make viewControllers a global definition for this
    {
	//Display modal view
        #ViewController_iPhone *vc1 = [[#ViewController_iPhone alloc] init];
        [ptabBarController presentModalViewController:vc1 animated:YES];
	[vc1 release];

	return(NO);
    }
    return(YES);
}