iosuitableviewuibuttonuitouch

Debug untouchable UIButton


I have a really strange problem on my App. The issue is that: The UIButton inside an UIView used as Footer in a UITableView respond correctly to touch only for the half of the height. No views are over the UIButton.

I drawn a red line on the touchable part:

And this is the Debug View Hierarchy


Solution

  • Is this a UITableViewCell? It looks like the content view's frame isn't as big as the cell's frame. Maybe the bottom constraint of the button is set to the cell's bottom rather than the cell's content view's bottom.