UICollectionView iOS 9 issue on project with RTL languages support

前端 未结 5 2110
礼貌的吻别
礼貌的吻别 2020-12-14 00:49

It seems like Apple\'s new feature of auto-flip interface on RTL languages cause problems when using UICollectionView.

I used constraints of type Traili

5条回答
  •  天命终不由人
    2020-12-14 01:22

    There is one common solution for that problem that works for me, follow below steps to overcome that problem,

    • Give the auto layout constraint as per your requirement and then from attribute inspector change the semantic control property of the collection view to Force right-to-left from the storyboard.

    • Then open storyboard as source code and find for the “leading” attributes of your relevant collection view and replace that with the “left” and same for the “trailing” replace that with the “right”. Now you almost done.

    • now that will give you result as per your requirement.

提交回复
热议问题