The first method is to put your display animation and cross button into a view, and add the button to the view; the second method is to reset the hotspot area of your contentview
The current problem is that the superview area of button is too small and blocks the response of the button. Just lift the button above it. There are many solutions.
You can add button to contentView.superview, but you need to reset button.frame.
The first method is to put your display animation and cross button into a view, and add the button to the view; the second method is to reset the hotspot area of your contentview
The current problem is that the superview area of
button
is too small and blocks the response of the button. Just lift the button above it. There are many solutions.You can add
button
tocontentView.superview
, but you need to resetbutton.frame
.