iOS push 横屏

[[UIApplication sharedApplication]setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:YES];
                        CGFloat duration = [UIApplication sharedApplication].statusBarOrientationAnimationDuration;
                        [UIView beginAnimations:nil context:nil];
                        [UIView setAnimationDuration:duration];
                        self.navigationController.view.transform = CGAffineTransformIdentity;
                        self.navigationController.view.transform = CGAffineTransformMakeRotation(M_PI*(90)/180.0);
                        self.navigationController.view.bounds = CGRectMake(0, 0, 480, 320);
                        self.navigationController.navigationBar.frame = CGRectMake(0, 0, self.view.width, 44);
                        [UIView commitAnimations];

你可能感兴趣的:(iOS)