I have a UIScrollView which content is designed with Interface Builder. It has a table with a UIButton below. If the button wasn’t moved before, it works (touchesBegan and TouchUpInside get called), but if it was moved using ‘button.frame = ‘ in response of content growth (the table got bigger), it stops responding to any touch.
I verified that there’s no hidden view in front of it, I even used bringViewToFront.
Check if your UIButton final position is both inside the
UITableViewandUIScrollViewbounds.It is possible that after you moved it, the
UIBUttonis placed outside the bound, and then will not respond to touch events.One quick set up that can make you verify that is to set the
clipToBoundsproperty of yourUITableViewandUIScrollViewtoNO, then all content placed outside the bounds will not even be visible.