I was wondering how to add a long press gesture recognizer to a (subclass of) UICollectionView. I read in the documentation that it is added by default, but I can't figure out how.
What I want to do is: Long press on a cell ( I have a calendar thingy from github ), get which cell is tapped and then do stuff with it. I need to know what cell is longpressed. Sorry for this broad question, but i couldn't find anything better on either google or SO
Objective-C
In your
myCollectionViewController.h
file add theUIGestureRecognizerDelegate
protocolin your
myCollectionViewController.m
file:Swift
Swift 4