こんにちはすべて私は、すべてのタブビューではなく最初のビューのみの横向きをサポートしたいタブバーアプリケーションを開発しています.1つのタブのみがすべての向きをサポートし、残りのタブは縦向きのみをサポートする必要があります. FirstView.m で
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return(interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
secondView.m で
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return(interfaceOrientation == UIInterfaceOrientationPortrait);
}
どのタブビューでも横向きにすることはできません。前もって感謝します