In my case I tried to added the UIButton direct to the cell by self.addSubview(myButton), so I changed to self.contentView.addSubview(myButton) and it worked
It seems the contentView was in front of the myButton so the button won't receive the tap gesture.