Advertise here

Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

view controller orientation problem

erdinc27erdinc27 TurkeyPosts: 396Registered Users @ @
The application that I develop can work only portrait mode. But what I want to do is let's say when I push 3rd view Controller to navigation stack then it will be displayed in landscape mode on the screen. And 4th same also but the other view controllers will be in portrait mode still. To do that I tried to transform the View but status bar couldn't be transformed. Here transform code
    [UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationLandscapeLeft;
    float width = self.view.bounds.size.width;
    float height = self.view.bounds.size.height;
    CGAffineTransform transform = self.view.transform;
    transform = CGAffineTransformRotate(transform, TRANSFORM_CONSTANT);
    self.view.transform = transform;
    [self.view setBounds:CGRectMake(0, 0, height, width)];

but status bar still cannot be transformed. How can i achieve to transform status bar as well ?
Sign In or Register to comment.