How to define sub-cell under collectionView in Swift?
Question
In a collectionView, there are many cells. I want to run different code under different cells, what should I do?
Answer
The answer below is using Swift 3.
In collectionView, multiple cells can be defined by indexPath.row, you run different code with this variable.
1 | if (collectionView == self.collectionView1) { |
This is the end of post