私のiPadアプリには、firstView用のtabbarControllerがあり、tabbarController用に、それを押すとボタンが追加され、1つのviewcontrollerが来ます。私の問題は、そのviewcontrollerをPortraitUpsideDownにしようとしているときに、PortraitUpsideDownに来ていなかったことです。そのviewControllerで使用するコードは
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Overriden to allow any orientation.
return(interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);
// はいを返します。}
}
誰が私が犯した間違いか、何か追加すべきことがあると教えてもらえますか. ありがとう。