2017-04-03 8 views
0

tvOS에 배포 할 반응이있는 기본 앱이 있습니다. 현재, 저는 Apple의 Simulator의 도움으로 건물을 짓고 있습니다.tvOS 앱용 시뮬레이터에서 디스플레이 회전

가로 모드로 고정되어 있으며 배포 할 TV가 세로 모드입니다.

시뮬레이터를 세로 모드로 돌릴 수 없어 멈추었습니다. 인터넷 검색을 한 시간 정도했는데 내 tvOS 앱을 회전하는 방법에 대한 답을 찾을 수 없습니다. 옵션은 Hardware > Rotate Left에 있지만 회색으로 표시됩니다.

tvOS rotate greyed out

은 어떻게 tvOS 응용 프로그램으로 90도 회전 할 수 있습니까?

+0

정말 답이 거기에있다 희망으로 판정을 받았습니다. 전체 앱을 옆으로 지어 쓰고 싶지 않다 ... –

답변

1

적어도 지금까지 tvOS 10.2. AppleTv에서는 가로 방향 만 지원합니다.

당신이 볼 수 있듯이

는 UIDeviceOrientation의 정의는 __TVOS_PROHIBITED

typedef NS_ENUM(NSInteger, UIDeviceOrientation) { 
    UIDeviceOrientationUnknown, 
    UIDeviceOrientationPortrait,   // Device oriented vertically, home button on the bottom 
    UIDeviceOrientationPortraitUpsideDown, // Device oriented vertically, home button on the top 
    UIDeviceOrientationLandscapeLeft,  // Device oriented horizontally, home button on the right 
    UIDeviceOrientationLandscapeRight,  // Device oriented horizontally, home button on the left 
    UIDeviceOrientationFaceUp,    // Device oriented flat, face up 
    UIDeviceOrientationFaceDown    // Device oriented flat, face down 
} __TVOS_PROHIBITED; 
+0

한숨. 나는 사과가 그들의 특색을 즐긴다 고 생각한다. 데이비드 정보를 제공해 주셔서 감사합니다. –