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];
}
}