I’m trying to bundle and present information from a Firebase DB in a table view.
I would like to show only the latest date according to different kind of categories in the tableView.
(see below). Unfortunately I couldn’t find a proper solution in google. Is there an easy way to bundle such kind of information in an array? I would be happy to get some hints. Thanks a lot !
e.g.:
Content DB:
[message 1; date; category A; text, …]
[message 2; date*; category A; text, …]
[message 3; date; category B; text, …]
[message 4; date*; category B; text, …]
[message 5; date*; category C; text, …]
- latest date
Should show in TableView:
[message 2; date*; category A; text, …]
[message 4; date*; category B; text, …]
[message 5; date*; category C; text, …]