2017-04-26 6 views
0

tvOS 10에서 작동하지 않는, 내 응용 프로그램은 tvOS 9 잘 작동하지만 난 tvOS (10) 내 응용 프로그램을 실행할 때 마우스 오른쪽 버튼 레이아웃 방향으로 왼쪽에서 실행됩니다. OS가 setSemanticContentAttribute을 무시하는 것 같습니다. 나는 다음과 같은 코드를 사용하고 있습니다.setSemanticContentAttribute이 내 응용 프로그램을 내가 오른쪽에서 왼쪽으로 레이아웃 방향을 설정하고있어에서

if(IOS9) { 
    [[UINavigationBar appearance] setSemanticContentAttribute:UISemanticContentAttributeForceLeftToRight]; 
    [[UITabBar appearance] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft]; 
    if ([[[UIView alloc] init] respondsToSelector:@selector(setSemanticContentAttribute:)]) { 
     [[UIView appearance] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft]; 
     [[UILabel appearance] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft]; 
     [[UITableView appearance] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft]; 
     [[UICollectionView appearance] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft]; 
     [[UIButton appearance] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft]; 
    } 
}else{ 
    if ([[[UIView alloc] init] respondsToSelector:@selector(setSemanticContentAttribute:)]) { 
     [[UIView appearance] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft]; 
    } 
} 

답변

0

영향을주지 않습니다 tvOS의 속성 semanticContentAttribute에 forceRightToLeft 값을 설정. 왼쪽에서 오른쪽으로보기는 어쨌든 추가됩니다.

이것은 tvOS의 버그입니다. https://openradar.appspot.com/31138095