그래서 내 응용 프로그램에서 iPad 용 마스터 디테일 프로젝트를 실행하고 있습니다.가로 전용 UIView가 세로 방향으로 바뀌고 있습니다
UIBarButtonItem
을 추가하면 프로그램에 대한 정보 "앱 정보"가 자세히 표시됩니다.
세부 사항 (UITable
)의 세 번째보기를 누르고 뒤로 단추를 누르면 navigationControl 스택의 두 번째보기로 돌아가서보기가 세로로 바뀝니다.
는 뷰 컨트롤러 -shouldAutorotateToInterfaceOrientation에서 NO 을 반환 :
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) return UIInterfaceOrientationIsPortrait(interfaceOrientation); else return UIInterfaceOrientationIsLandscape(interfaceOrientation); }
이 나타납니다 오류가 모든 인터페이스 방향에 대한
내 모든 viewControllers는 다음과 같은 코드가 있습니다. 적어도 하나의 방향을 지원해야합니다.
또한 스토리 보드에서 UIView
방향의 가로 방향 설정을 시도했지만 어느 것도 작동하지 않습니다.
모든 리드?
.m 클래스. 어리석은 질문에 대해 유감입니다. –