reload collection view by press back bar button item

332 views Asked by At

I have a collectionView in my app that when the user taps one cell of it, the collectionView will reload data, in detail, I have an album that it could contain another album when user choose one of them it shows albums inside of that.

Now I want when user click on backBarButton the past data appears on collectionView (super-albums), but now backbarButton shows the past VC.

I use navigationController and show module segues between VCs.

Q: How should I implement that?

1

There are 1 answers

2
Nex Mishra On

If your changing view on collection cell press. you can reload the collection view on viewWillAppear.