0

My head is getting stuck here.

I am having One UIView added tap gesture to that view(no of tap=1) On this gesture im calling method - callTap()

Added UIButton as subview to that uiview. this button is having one selector method - callClick()

As I am tapping on button callTap() is getting called instead of callClick()

I want to know reason behind this behavior. And hot to get out of this.

pallavi
  • 513
  • 7
  • 13

1 Answers1

0

Your problem seems similar to this question which is answered well.

UIButton inside a view that has a UITapGestureRecognizer

Community
  • 1
  • 1
βhargavḯ
  • 9,786
  • 1
  • 37
  • 59