title: UIToolbar slides up and UIView slides down in displayed view
body: <p>UIButton from the <code>UIToolbar</code> on the <code>Mainviewcontroller</code> when displays <code>UIView</code>, <code>UIToolbar</code> slides up in the <code>View</code> displayed. From the <code>View</code> when <code>infobutton</code> is pressed to present modalviewcontroller and upon dismissal modalviewcontroller slides down.</p>
  
  <p><code>UIToolbar</code> and <code>Modalviewcontroller</code> both are behaving normal in the <code>Mainviewcontroller</code> i.e <code>UIToolbar</code>not sliding up and <code>Modalviewcontroller</code> not sliding down upon dismissal.</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)];
  
     PageOneViewController *viewController = [[[PageOneViewController alloc] init]autorelease];
  
     [self.view addSubview:viewController.view];
  
     [self.view addSubview:self.toolbar];
  
  }
  </code></pre>
  
  <p>Any ideas why it is happening and what should i do to fix it.</p>