Xcode를 v4.5로 업데이트 할 때 splitView 프로젝트에서 작업하고있었습니다. 그 이후로 자동 회전은 완벽하게 작동했습니다. 업데이트 후에 자동 회전은 iOS 6에서만 작동합니다. iOS 5.1에서는 세로로 쌓습니다. 모든 가능한 해결책을 읽었지만 아무 것도 내 문제를 해결할 수없는 것 같습니다. 아래는 지금까지 내가 한 것입니다 :Xcode 4.5 SplitView는 iOS 5.1에서 깨진 방향을 나타냅니다 (iOS6에 대한 생각)
모든 방향이 내 plist에 있음을 확인했습니다. 는
- (BOOL)shouldAutorotate
{
return TRUE;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeRight;
}
와 (BOOL)shouldAutorotateToInterfaceOrientation:
를 대체 나는 다른에 표시
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return (UIInterfaceOrientationMaskAll);
}
은 아래 답변 나는 splitView 컨트롤러에서 구현하는 방법을 잘 얼마나 이제까지 스 니펫 애플 대리자에 아래의 코드 조각을 추가
누구든지 나를 도와 줄 수 있습니까?