アプリケーションに問題があり、気が狂います。私のアプリケーションでは、シミュレーターを横向きモードに回転させますが、以下の関数では、縦向きになります。
ここでの問題は何ですか?私を助けてください。
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ( interfaceOrientation == UIInterfaceOrientationPortrait ||
interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown )
{
NSLog(@" portrait orientation");
}
else
{
NSLog(@"Landscape");
}
return YES;
}