In the chat app, I should use table view or collection view in my project
Table view or Collection View support better for load more message and optimize
CodePudding user response:
Depends on requirements of your app. UICollectionview
is raccomanded for multiple view shown in a grid.
In a messaging app there are a lot of components in addiction to bubbles.
Otherwise UITableView
displays a list of items in a single column, so if your UI is more basilar i recommend this.
Documentation says here:
Collection views provide the same general function as table views except that a collection view is able to support more than just single-column layouts. Collection views support customizable layouts that can be used to implement multi-column grids, tiled layouts, circular layouts, and many more. You can even change the layout of a collection view dynamically if you want.
Watch this post for more information.