내 앱이 항상 세로 모드로만 표시되도록하려면 어떻게해야합니까? iPhone을 회전하면 가로 모드로 표시되지 않습니다.iPhone 세로 모드 전용 앱
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation != UIInterfaceOrientationPortrait);
return YES;
}
iPhone을 회전 할 때이 코딩이 끝난 후 앱이 가로 모드로 표시됩니다. 어떻게하면 항상 세로 모드로 앱을 만들 수 있습니까?
속는 http://stackoverflow.com/questions/10032490/how-to-support-only-portrait-mode-on-an,이 메소드를 오버라이드 (override) 할 필요가 아이폰 OS 6 보인다 -iphone-app – rishi
아래의 좋은 대답은 나중에 참조 할 수 있도록 "! ="은 같지 않음을 의미하므로 게시 한 코드는 세로 이외의 방향을 반환하도록 앱에 지시합니다. –