expanding-collection icon indicating copy to clipboard operation
expanding-collection copied to clipboard

How do I add button click event on each of the cell?

Open junweimah opened this issue 7 years ago • 1 comments

So I have a design like this for my project :

image

How do I add and handle click event for all the cell's button?

I have this delegate :

func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)

But this is tapping of the whole cell, not the button.

Any help?

Thanks

junweimah avatar Feb 20 '18 14:02 junweimah

You probably need to disable click on view with view.UserInteractionEnabled or to cell

VasileiosDiamantidis avatar Feb 28 '18 13:02 VasileiosDiamantidis