ユーザーがデバイスを回転できるようにすることを計画していますが、起動時に、アプリを横向きモードから開始したいと考えています。どうすればそれを行うことができますか?
これがオリエンテーション用の私のコードです
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
} else {
return YES;
}
}