2011-01-26 1 views
2

문제 :

나는 배경에 응용 프로그램을 전송하는 경우 때 UIInterfaceOrientationLandscapeRight 방향으로, 나는 표시 스냅 샷 및보기 모두 기본입니다 방향이 UIInterfaceOrientationLandscapeLeft 인 다중 작업 표시 줄에서 응용 프로그램을 다시 시작합니다. 뷰는 일시 중단되기 전에 마지막으로 알려진 방향, UIInterfaceOrientationLandscapeRight로 다시 회전하여 즉시 다시 방향을 지정합니다.iOS : 멀티 태스킹 막대에서 앱을 다시 시작할 때 방향을 어떻게 유지하나요?

알려진 수량 :

  1. 응용 프로그램은 2 InterfaceOrientations 지원 UIInterfaceOrientationLandscapeLeft 및 UIInterfaceOrientationLandscapeRight
  2. 앱은 자동 회전을 이용하여 방향을 지원하는
  3. 두 방향 중 하나 인 경우 예 반환 ShouldAutoRotateToInterfaceOrientation을 무시 모든 뷰 컨트롤러, Info.plist 내에서 UISupportedInterfaceOrientations 키 아래에 정의되어 있습니다.
  4. 앱이 백그라운드로 보내지면 ic 스냅 샷이 촬영되어 지원되는 방향으로 저장됩니다.
  5. 스프링 보드에서 앱을 다시 시작하면 예상대로 작동하며 방향이 배경으로 전송 된 것과 같습니다.

관찰 동작 :

다중 작업 표시 줄에서 앱 복귀 앱 각각 오버라이드 shouldAutoRotateToInterfaceOrientation 의해 평가되는 2 개 방향의 통지를 수신한다. 첫 번째 UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight.

예상 결과 :

다중 작업 표시 줄에서 응용 프로그램을 다시 시작, 방향이 일시 중단되었을 때와 동일합니다. 그래서 우리가 UIInterfaceOrientationLandscapeRight 모드에 있었다면 같은 방향으로 다시 시작할 것으로 기대합니다.

답변

0

나는 이것이 오래된 게시물 인 것을 알고 있지만 대답은 UIInterfaceOrientationLandscapeLeftUIInterfaceOrientationLandscapeRight 값을 사용하여 Info.plist 파일에서 UISupportedInterfaceOrientations 키를 정의하지 않는다는 것입니다.

관련 문제