I've spent ages stuck on this: Using the Tab Bar template (without storyboard) I can easily switch between tabs and switch between views within each table, however when it comes to swapping between a `UITabBarController` and a `UIViewController` whatever code i keep trying won't work.

```
-(IBAction)tabtoview:(id)sender{
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.5];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp
                           forView:self.view
                             cache:YES];
    [self.tabBarController removeFromParentViewController];   
    [self.view addSubview:self.mainscreen]; //Crashes here
    [UIView commitAnimations];
}

```

Rather than removing the `tabBarController` it would be preferable if I could hide/disable it after having animated. Any help is appreciated thanks!