Anand
Anand

Reputation: 1973

Get complete Touch Area/Space on the screen IOS

Is there any way to find the touched area/space in the screen (e.g, if you kept your thumb on the screen it needs to return the frame area covered by thumb)?

enter image description here

Upvotes: 4

Views: 151

Answers (1)

jszumski
jszumski

Reputation: 7416

New in iOS 8.0 is the majorRadius property of UITouch that should give you the data you need:

Use the value in this property to determine the size of the touch that was reported by the hardware. This value is an approximation of the size and can vary by the amount specified in the majorRadiusTolerance property.

Upvotes: 2

Related Questions