When to use UICollectionView instead of UITableView?

前端 未结 15 1630
闹比i
闹比i 2020-12-07 12:57

I found that UICollectionView is like an upgraded version of UITableView introduced in iOS6, but when should I choose UICollectionView

15条回答
  •  执念已碎
    2020-12-07 13:54

    Although it's not required, I always use a collectionview. That way I can easily adapt how my collections are presented for differing resolutions. A plus is that it's ready to quickly add new types of cells when refactoring in the future.

    I see no point of tableviews. It's very simple to use a collection view to represent a table. IMO.

提交回复
热议问题