Placing a margin around each edge of the UICollectionView

后端 未结 7 1605
天涯浪人
天涯浪人 2020-12-14 18:18

When the UICollectionView is populated with items they always go right to the edges of the UICollectionView like so:

---------------
|X X X X X X X|
|X X X X         


        
相关标签:
7条回答
  • 2020-12-14 19:04

    On Xcode 8, if you're using the interface builder you can set the Section Insets right on the Size Inspector:

    0 讨论(0)
提交回复
热议问题