07-19-2023, 01:16 AM
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)
}
let fGuesture = UITapGestureRecognizer(target: self, action: #selector(self.showF(_:)))
cell.fstackView.addGestureRecognizer(fGuesture)
func showF(sender: AnyObject){
print(111)
}