我的应用程序出现问题,这让我发疯。在我的应用程序中,我将模拟器旋转到横向模式,但在下面的函数中,我得到纵向。
这里有什么问题?请帮帮我。
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ( interfaceOrientation == UIInterfaceOrientationPortrait ||
interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown )
{
NSLog(@" portrait orientation");
}
else
{
NSLog(@"Landscape");
}
return YES;
}