Aligning right to left on UICollectionView

前端 未结 13 643
悲哀的现实
悲哀的现实 2020-12-02 08:31

this is a pretty straightforward question, but I haven\'t been able to find a definitive answer to it on SO (if I missed it, please correct me).

Basically, my quest

13条回答
  •  暖寄归人
    2020-12-02 09:09

    For anyone who has the same question:

    I ended up using the UICollectionViewRightAlignedLayout library that @chinttu-roxen-ramani recommended. You can either set it with code:

    self.collectionView.collectionViewLayout = [[UICollectionViewRightAlignedLayout alloc] init];
    

    or through interface builder:

    Through interface builder

    I ended up making a couple modifications to the library, but overall it works great.

提交回复
热议问题