(swift) - collectionview doesn't detect cell tab after the first line
<p>I have a strange issue on collectionview. I use the function </p>

<pre><code>func collectionView(collView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell
</code></pre>

<p>to detect if a cell of my collectionview is touched, and it works but only for cells in the first row.</p>

<p>Actually, I have 4 items in my collectionview, and on iPhone I display 2 items per row and on iPad, 3 items per row.
So the 4th items is never detected (as always on the 2nd row of my collectionview) but for the 3rd item, the TAP is detected on iPad as it is on the first row, but not detected on iPhone.
That's why I think the issue comes from the number of row.</p>

<p>Is there any particular reason for that ? Or maybe I just make a mistake :)
Thanks !</p>