When to use UICollectionView instead of UITableView?

前端 未结 15 1663
闹比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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 13:46

    If you choose UITableView for iPhone, make sure you have considered your iPad strategy first. If you want an iPad-specific layout, you may want that single-column layout to become a grid.

提交回复
热议问题