I need to implement a grid view with dynamically-changing images.
Most of the time, I use a UITableView to create a grid, but I run into memory issues if I
UITableView
I would go with UICollectionView as you said. You can actually see this answer I gave, where you can see already made libraries.
UICollectionView