내 응용 프로그램의 대부분은 회전을 지원하지 않습니다. 지원되는 방향에서, 나는 portait만을 선택했습니다. 응용 프로그램이 사용하는 UIViewController 하위에 나는이있다 : 방향을 지원합니까 UIViewController 하위에서ViewController iOS6에서 회전하지 않음
-(BOOL)shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations {
NSLog(@"supported?");
return UIInterfaceOrientationMaskPortrait;
}
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
NSLog(@"preferred");
return UIInterfaceOrientationPortrait;
}
을,이 있습니다
-(BOOL)shouldAutorotate {
return YES;
}
-(NSUInteger)supportedInterfaceOrientations {
NSLog(@"supported?");
return UIInterfaceOrientationMaskAll;
}
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
NSLog(@"preferred");
return UIInterfaceOrientationPortrait;
}
포함, 그러나 모든보기에 회전하지 않는 내 응용 프로그램 이 하나. 내가 원하는대로 여기를 어떻게 회전시킬 수 있습니까?
나요 모든 오리엔테이션을 Info.plist에서 지원되는 오리엔테이션에 추가하십시오. – DrummerB
아니요, 지원되는 방향으로 포틀릿 만 선택했습니다. 가로보기를 사용하면 모든보기 컨트롤러에서 가로로 회전합니다. – Andrew
내비게이션 컨트롤러가 있습니까? – rooster117