iPhone rotation issue -
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.
/ div>
Your border is made with rectangular (0, -20) originally on it (0 , 0) and you should get rid of the offset and see to see the screen.
Comments
Post a Comment