Im attempting to add a UITapGesture
to a UIStackView
within a collectionView cell but each time I do my app crashes. (All IBOutlets
are connected) This there something I'm doing wrong here?
let fGuesture = UITapGestureRecognizer(target: self, action: #selector(self.showF(_:)))
cell.fstackView.addGestureRecognizer(fGuesture)
func showF(sender: AnyObject){
print(111)
}
#selector(self.
changeself
to your class name – Marbling