Help - Getting wrong orientation
- by barbgal
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");
}
}