iOS 9.2版本中的RTL



我的以下代码适用于iOS 9.0和iOS 9.1,但当我升级到9.2时,它运行不好。为了支持旧版本,我使用CGAffineTransform。

if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"9.0"))
 {
   [[UIView appearance]setSemanticContentAttribute:UISemanticContentAttributeForceLeftToRight];
 }

为什么这个不工作

请不要这样做。您不应该在UIAppearance代理上设置semanticContentAttribute

最新更新