What event is canceled, and how does it differ from the finishing touches

I just don’t understand what the apple means from the canceled touch event and what it is called.

+3
source share
1 answer

I'm not sure if Tim asked your question, so I'll take a picture.

touchsCanceled is called when the OS needs to interrupt the user. This gives you the ability to clear everything you did in touchBegan and touchhesMoved.

More specifically, it is called when the user places the phone on his face, turning off the screen, or if a notification appears, such as an incoming call or a new text message.

+9
source

Source: https://habr.com/ru/post/1728126/


All Articles