Leftover Nav Bar in Landscape View
<p>I am working to force a view into landscape mode, and have picked up all kinds of cool tips to make this happen, but am stuck on one item that is left on the screen.</p>

<p>I have my XIB file laid out in landscape, and in my code I create the view controller normally:</p>

<pre><code>RedeemViewController *aViewController = [[RedeemViewController alloc] initWithNibName:@"RedeemViewController" bundle:nil];
    aViewController.hidesBottomBarWhenPushed = YES;
    aViewController.wantsFullScreenLayout = YES;
[[self navigationController] pushViewController:aViewController animated:YES];  
</code></pre>

<p>Inside the controller viewDidLoad I complete the following:</p>

<pre><code>[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight];
[[self navigationController] setNavigationBarHidden:YES animated:YES];


[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimationDuration:.75];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];

if (self.interfaceOrientation == UIInterfaceOrientationPortrait) {      
self.view.transform = CGAffineTransformIdentity;
self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(90));
self.view.bounds = CGRectMake(0.0, 0.0, 480, 320);
}
[UIView commitAnimations];
</code></pre>

<p>What I end up with is a perfectly rotated view, with a grey vertical bar on the left side (see pic).
<img src="http://taxhelp.net/vert_bar.png" alt="alt text"></p>

<p>So to the question, how do I get rid of the bar?</p>

<p>Edit:  I am pretty sure this is the navigation bar that is not being hidden.</p>

<p>This is a duplicate of another post, with some modified code, the other question was being answered with the bug.</p>
