When touches Cancelled method get invoked in iPhone?

前端 未结 5 757
南笙
南笙 2021-02-05 07:49

I am able to understand that when user just touches the view, touches Began and Ended called. When user swipes their hand on a view, touches Moved method gets called. But when d

5条回答
  •  一向
    一向 (楼主)
    2021-02-05 08:05

    And, from the Event Handling Guide for iOS, p. 19:

    It sends the touchesCancelled:withEvent: message when the touch sequence is cancelled by a system event, such as an incoming phone call.

提交回复
热议问题