When to use UICollectionView instead of UITableView?

前端 未结 15 1633
闹比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条回答
  •  Happy的楠姐
    2020-12-07 13:37

    Based on our need we are choosing TableView or CollectionView.

    Example:

    For phone contacts tableView is best option.

    For photo gallery, collection view will be best option.

提交回复
热议问题