How does ios realize that after clicking a button, the bullet layer disappears when clicking other parts of the screen without responding to other buttons on the screen?

  ios, question


1 how to click on the button and not respond to other buttons on the screen
When clicking on other parts of the screen, the bullet layer disappears

Add a view at the bottom of your bomb layer with the same width and height as the screen, capture this view tap gesture and close it