iPad orientation on launch problem in portrait (bottom home button)

Posted by edie on Stack Overflow See other posts from Stack Overflow or by edie
Published on 2010-06-17T03:08:58Z Indexed on 2010/06/17 3:13 UTC
Read the original article Hit count: 276

Hi....

I've an iPad app that supports all orientation... my problem was on the start up of the application. In case of landScapeRight and landScapeLeft and portrait(top home button) the views shows correctly but when the app start in portrait (bottom home button) the views show in landscape mode... I've implemented the

- (void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

When I change the apps orientation the views shows correctly.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c