IPhone application issue in toolbar
<p>Here I'm using 3.2.5sdk,and 4.2 IOS,</p>

<p>I create on viewbased application and add the navigation based lick</p>

<pre><code>UINavigationController *navigation = [[UINavigationController alloc]
    initWithRootViewController:viewController];
    [self.window addSubview:navigation.view];
</code></pre>

<p>Now i create a tool bar and set that tool bar to button and once I rotrate my mode from portrate ti landscape or vise versa lick using this code</p>

<pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:
    (UIInterfaceOrientation)interfaceOrientation 
{ 
    return YES;
}

- (void)willRotateToInterfaceOrientation:
    (UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{


 if (UIInterfaceOrientationIsPortrait(toInterfaceOrientation))
 {
   [toolbarview setFrame:CGRectMake(0, 979, 768, 45)];
   NSLog(@"the frame size is %f,%f,%f,%f",toolbarview.frame.origin.x,
    toolbarview.frame.origin.y,toolbarview.frame.size.width,
    toolbarview.frame.size.height);
   NSLog(@"This is protrait mode");    
 }
 else
 {
   [toolbarview setFrame:CGRectMake(0, 723, 1024, 45)];
   NSLog(@"the frame size is %f,%f,%f,%f",toolbarview.frame.origin.x,
    toolbarview.frame.origin.y,toolbarview.frame.size.width,
    toolbarview.frame.size.height);
   NSLog(@"This is land mode");
 }
</code></pre>

<p>its working fine but once i m navigate from viewController to other page and then i change my mode lick this code on second page.</p>

<pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:
   (UIInterfaceOrientation)interfaceOrientation 
{
    // Overriden to allow any orientation.
 if ((interfaceOrientation==UIInterfaceOrientationLandscapeLeft) ||
    (interfaceOrientation==UIInterfaceOrientationLandscapeRight))

 { 
  [viewController.toolbarview setFrame:CGRectMake(0, 723, 1024, 45)];
  NSLog(@"the frame size is %f,%f,%f,%f",viewController.toolbarview.frame.origin.x,
    viewController.toolbarview.frame.origin.y,
    viewController.toolbarview.frame.size.width,
    viewController.toolbarview.frame.size.height);
  NSLog(@"this is the Landscape Mode in home");

 }
 else 
 {
  [viewController.toolbarview setFrame:CGRectMake(0, 979, 768, 45)];
  NSLog(@"the frame size is %f,%f,%f,%f",viewController.toolbarview.frame.origin.x,
    viewController.toolbarview.frame.origin.y,
    viewController.toolbarview.frame.size.width,
    viewController.toolbarview.frame.size.height);
  NSLog(@"this is the portrait mode in home");

 }
 return YES;
}
</code></pre>

<p>And according to second page mode I want to Change tool bar position but its not working .</p>
