Help - Getting wrong orientation
Posted
by
barbgal
on Stack Overflow
See other posts from Stack Overflow
or by barbgal
Published on 2010-12-30T06:35:24Z
Indexed on
2010/12/30
6:54 UTC
Read the original article
Hit count: 272
Hi all,
I am having one issue in my application which drives me mad...
In my application, i rotate the simulator to the landscape mode but in my below function i get portrait orientation...
what is the problem here.
Pls help me out
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ( interfaceOrientation == UIInterfaceOrientationPortrait ||
interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown )
{
NSLog(@" portrait orientation");
}
else
{
NSLog(@"Landscape");
}
}
© Stack Overflow or respective owner