ばかげた質問で申し訳ありませんが、どこにも良い答えが見つかりませんでした。
UIUserInterfaceIdiomPhone を確認すると、iPhone と iPod touch の両方で YES になりますか?
つまり:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
return YES;
}
iPad のみの場合は YES を返し、iPhone と iPod の両方の場合は縦長を返しますか?
iPhoneアプリを開発しましたが、今はユニバーサルに変更しています。それはほぼ完了しており、すべての「if」を変更したくありません。(自分でテストするための実際の iPod touch は持っていません)。
ありがとう、マックス