问题描述
有没有办法捕获与用户联系的屏幕数量?我假设自显示ipad仅响应用户与之接触的像素。
Is there a way to capture the amount of screen that is making contact with the users? I assume there is since this finger painting app shows the ipad responding to only the pixels that the user makes contact with.
非常感谢您的帮助!
推荐答案
触摸的大小被框架抽象掉,UITouches只包含计算的(最佳估计)点而不是被触摸的原始实际区域。我猜测压力是根据触摸的持续时间和方向计算的。
The size of the touch is abstracted away by the framework, and UITouches only contain calculated ("best estimated") points instead of the raw, actual areas that were touched. I would guess that the "pressure" was calculated from the duration and the direction of the touch.
简而言之,没有公共API来获取联系区域。
In a nutshell, there is no public API to get the contact area.
这篇关于如何捕获用户与iPhone屏幕接触的表面积?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!