For example, I have a UIButton, which I posted in IB.
This function UIButtonhas two functions, depending on whether it has been touched inside or pulled out - it would be nice to at least maintain its operability for touching inward.
I want to click on my button and “drag out”, but use it -touchesEndedabove the rectangle when I finally release my click.
I know that one of the options is to cut UIButtonand use -touchesBeganthe mask, but it is a lot more effort and requires a good big rewrite (with 96 buttons in mind).
To paraphrase a little - I clicked on the button and clicked on the mouse, dragging the cursor (/ finger) to another point on my screen, and I want my view to recognize -touchesEndedwhen I finally release it. The problem is that the initial click is associated with the button, so it -touchesEndeddoesn’t happen in my main view ...
Am I trying to do it wrong? Also, am I clear?
EDIT: @Heckman formulated the question much lower
source
share