iphone - Leftover Nav Bar in Landscape View -
I'm working to force a view into landscape mode, and to do all kinds of cool tips
I have been kept in my XIB file landscape, and in my code I usually make the view controller:
RedeemViewController * aViewController = [[RedeemViewController alloc] initWithNibName: @ "RedeemViewController" bundle: zero]; AViewController.hidesBottomBarWhenPushed = Yes; AViewController.wantsFullScreenLayout = Yes; [[Self-Navigation Controller] Push ViewController: Animated One Visual Controller: Yes];
Within the controller view, I fulfill the following:
[[UIApplication shared application] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight]; [[Self navigation controller] Set navigation bar: Animated yes: yes]; [UIView Start Permissions: @ "View Flip" Reference: Zero]; [UIView Set Animation Duration: .75]; [UIView Set Animation Cave: UIViewAnimationCurveEaseInOut]; If (Self Interference ==UINFterfaceAuthentication Portrait) {self.view.transform = CGAffineTransformIdentity; Self.view.transform = CGF TransformMarketation (Degree terready (90)); Self.view.bounds = CGRectMake (0.0, 0.0, 480, 320); } [UIView commitAnimations];
I have a completely rotating view, with a gray vertical strip on the left (see picture).
So for question, how do I get rid of the bar?
EDIT: I'm pretty sure this is a navigation bar that is not hidden.
P> This is a duplicate of another post, with some modified code, the other question is being answered with the bug.
Remove the navigation bar from the interface builder or see if it is left behind by your other controllers.
I have lost a few days on a similar problem because I did not know that my nabars were not being removed, when another controller with a new controller pushed the other controller with the navigation. was going. ;)
Comments
Post a Comment