문제 설명
목표 c 아랍어에 대한 자동 레이아웃 현지화 동작 비활성화 (Objective c Disable Autolayout Localization Behavior for Arabic)
뷰에 자동 레이아웃을 사용하지 않는 코드가 있고 Obj‑C로 작성되었습니다.
뷰를 있는 그대로 유지하고 싶습니다(왼쪽에서 right) 가 아랍어로 전환될 때.
자동 레이아웃 제약 조건(언어 방향 준수 여부), 하지만 자동 레이아웃 제약 조건을 사용하지 않고 회전하는 기능을 비활성화하려는 경우 아랍어 버전에 대한 내 앱 RTL 방향은 무엇입니까?
도움을 주셔서 감사합니다.
참조 솔루션
방법 1:
You can force your UIView's direction by using UISemanticContentAttribute
i.e, to force Right to left direction, apply
[myView setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft];
On your view.