0

Adding the tap gesture to the imageView present above the header and not getting inside the action

   let headerTap = UITapGestureRecognizer(target: self, action: "headerClicked")
   headerTap.delegate = self
   headerTap.numberOfTapsRequired = 1
   headerTap.numberOfTouchesRequired = 1
   image.addGestureRecognizer(headerTap)
Rajesh Kumar
  • 821
  • 12
  • 20

1 Answers1

0

You can add UIButton instead of UIImageView it will reduce the tap gesture code I think.

Rajesh Kumar
  • 821
  • 12
  • 20