アプリ内のビューの 1 つだけを右に横向きにしたいと考えています。他のすべてのビューはポートレート モードです。前のビューはポートレート モードです。横表示を縦表示にしました。どうすれば正しくできますか?
私のランドスケープビューコントローラーで:
//Orientation
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
return (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
// New Autorotation support
-(BOOL)shouldAutorotate {
return YES;
}
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscapeRight;
}