How can I capture the amount of surface that the user is in touch with the screen of the iPhone?

advertisements

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.

Thanks so much in advance for your help!


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.

In a nutshell, there is no public API to get the contact area.