title: iPad modalPresentationStyle UIModalPresentationFormSheet orientation problem
body: <p><br>
  I have problem when using modalPresentationStyle.<br>
  I call the following function in my tabbarcontroller's first view controller's viewDidload<br>
  So that the login viewController is displayed when app launches<br></p>
  
  <p>But the problem is when I launch app in Landscape mode I can see the login view correctly and I rotate the iPad to portrait mode the background of login viewcontroller that is my First tabbar viewcontroller goes up by about 20pixels<br></p>
  
  <p>I create a new app to check and I found this will only happend when we use tabbar.<br>
  and when App launches in portrait mode its works great!
  <br><br></p>
  
  <pre><code>-(void)gotoCredentials {
  Login *objLoginViewController=[[Login alloc] initWithNibName:@"Login" bundle:nil];        
   UINavigationController *objnavigationController = [[UINavigationController alloc] 
                  initWithRootViewController:objLoginViewController];       
   objnavigationController.modalPresentationStyle=UIModalPresentationFormSheet;
   objLoginViewController.modalPresentationStyle=UIModalPresentationFormSheet;
   [self  presentModalViewController:objnavigationController animated:YES];
   //[self.tabBarController presentModalViewController:objnavigationController animated:YES];
   [objLoginViewController release];
   objLoginViewController=nil;
   [objnavigationController release];
   objnavigationController=nil;
  }
  </code></pre>
  
  <p>thanks in advance!</p>