저는 앱 개발 중이며 Xcode 5 개발 중입니다. 앱은 iOS 5에서 iOS 7 지원까지 iPad 용입니다. 나는 plist 및 Project 설정에 정의 된 Landscape Left 및 Right로 응용 프로그램을 제한합니다. 는 또한 클래스Xcode 5에서 iOS 5 용 자동 회전 제한
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
- (NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscape;
}
에서 앱 위임
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return UIInterfaceOrientationMaskLandscape;
}
코드 로 정의하지만 무슨 일이 있었는지, 그것은 아이폰 OS 7 및 iOS 6에서 잘 작동하지만 항상에서 iOS 5 장치 이동 세로로 회전. 나는 풍경에서만 이것을 제한하는 방법을 여기에 붙어있다. 친절하게 도와주세요. 미리 감사드립니다.
iOS 5가 아닌 ... – iPatel
예 ... 6.0 이후 사용 중지되었습니다. – KethanKumar
죄송합니다. !!!! :( – josh