brightec / CustomCollectionViewLayout

Custom layout for a collection view using horizontal and vertical scrolling with sticky rows and columns
MIT License
519 stars 123 forks source link

How can i perfom item selection on collection view? #28

Closed nicklongo closed 6 years ago

nicklongo commented 6 years ago

Hello,

I'm trying to open a new viewcontroller on item selection.

If I add an IBAction on my UICollectionViewCell class, I cannot open a new viewcontroller. I try to add a delegate method on my actual viewcontroller, like func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath), but when i "click" on an item, it doesn't perfom method.

I'm checked every parameter and setting, all seems to be ok. I don't know what I have to try more.

Thank you for your time.

nicklongo commented 6 years ago

Sorry, i was design a button on my customcell. Removing button solved my issue.

Thank you for your time.