UIToolbar shows gap when going back to View after dismissing ModalViewController
<p>Button is pressed from the <code>Mainviewcontroller</code> which presents view and from this view when <code>infobutton</code> is pressed to present <code>Modalviewcontroller</code> and when <code>ModalViewController</code> is dismissed to go back to view. And once view is loaded <code>UIToolbar</code> shows gap from the bottom and gap is of <code>UIToolbar</code> height.</p>

<pre><code>- (void)displayviewsAction:(id)sender
{
   self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]]autorelease];

[self.view setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];

   PageOneViewController *viewController = [[[PageOneViewController alloc] init]autorelease];

   [self.view addSubview:viewController.view];

   [self.view addSubview:toolbar];

}

- (void)modalViewAction:(id)sender

{
ModalViewController *controller = [[ModalViewController alloc] init];

controller.delegate = self;

UINavigationController *navigationController = [[UINavigationController alloc]
                                                initWithRootViewController:controller];
navigationController.navigationBar.tintColor = [UIColor brownColor];

controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

[self presentModalViewController:navigationController animated:YES];

[navigationController release];

}
</code></pre>

<p>Anyone knows how to fix it.</p>

<p>Thanks for help.</p>
