请不要这样做。您不应该在
我的以下代码适用于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
。