Dans mon application, je règle le sens de mise en page de droite à gauche, mon application fonctionne bien sur tvOS 9, mais lorsque je lance mon application sur tvOS 10, elle fonctionne dans le sens gauche-droite. Il semblerait que OS ignore ignorer setSemanticContentAttribute. J'utilise le code suivant.setSemanticContentAttribute: ne fonctionne pas dans tvOS 10
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];
}
}