本文介绍了UIResponder延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UIView子类,该子类重写了UIResponder的touchesMoved:消息.我注意到,当我在UIView上快速滑动手指时,touchesMoved:消息只会每隔一段时间被调用一次,而不会不断得到消息.

I have a UIView subclass that overrides UIResponder's touchesMoved: message. I've noticed that when I swipe my finger very quickly across the UIView, my touchesMoved: message only gets called every so often and not constantly getting messaged.

有什么想法吗?

谢谢.

推荐答案

根据Apple开发人员技术支持,这是设计使然.

According to Apple Developer Technical Support this is by design.

这篇关于UIResponder延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 06:29