programmatically change device orientation in iphone

Posted by iPhoneDev on Stack Overflow See other posts from Stack Overflow or by iPhoneDev
Published on 2010-12-30T03:37:32Z Indexed on 2012/09/19 3:38 UTC
Read the original article Hit count: 440

Filed under:

I have navigation based app, when I click on any row in root view, the next view should come in Landscape mode.

I am not able to find a proper way to implement this. What I tried is:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {   
    return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}

But this is not working. The view should open only in Landscape mode (not when user rotate it). Can any one help me. Thanks

© Stack Overflow or respective owner

Related posts about iphone