UICollectionView: How to define a UICollectionViewLayout that supports horizontally and vertically scrolling?

前端 未结 4 1723
梦毁少年i
梦毁少年i 2020-12-07 16:26

At the moment I\'m trying to create an UICollectionView, that should display a simple excel-like-spreadsheet, with rows and colu

4条回答
  •  一生所求
    2020-12-07 16:30

    I've added an example of using a custom layout to implement a simple horizontal & vertical scrolling grid here https://github.com/neildavis/MyCollectionView

    My example uses PSTCollectionView since I needed iOS 5 support, but it's API compatible with built in UICollectionView. (Actually it uses the compatibility classes (PSUICollectionView etc) provided to ensure it uses a UICollectionView on iOS 6 and falls back to using PSTCollectionView etc on iOS 5.) Just remove the 'PS' prefix on these to revert to iOS 6 only UIKit implementation.

提交回复
热议问题