iPad:通过手指在屏幕上触摸来测量/检测覆盖区域(不仅仅是触摸坐标) [英] iPad: Measure/detect covered area by a finger touch on screen (NOT only touch coordinates)

查看:171
本文介绍了iPad:通过手指在屏幕上触摸来测量/检测覆盖区域(不仅仅是触摸坐标)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想访问IPad上每个触摸事件的手指覆盖区域。



每次触摸事件都会产生一个坐标对X和Y独立于手指有多大以及因此触摸区域是触发事件。



我想知道是否有一种方法可以获得触发触摸事件的区域数据。大小或坐标NOT



任何帮助都非常感谢。



感谢您提前回答或重定向, / p>

Christian

解决方案

UITouch中存在私有API

  @property(assign,nonatomic,setter = _setPathMajorRadius :) CGFloat _pathMajorRadius; 

但在AppStore上使用此操作将导致您的应用程序被拒绝。在

$

$
b $ b

I would like to get access to the area covered by a finger for each touch event on an IPad.

Every touch event will result in a coordinate pair X and Y independent of how big the finger and consequently the touch area is that triggered the event.

I was wondering if there is a way to get the area data which triggered the touch event e.g. size or coordinates NOT

Any help is much appreciated.

Thanks in advance for you answer or redirects,

Christian

解决方案

There is no public API for this. A private API exists in UITouch:

@property(assign, nonatomic, setter=_setPathMajorRadius:) CGFloat _pathMajorRadius;

but using this on AppStore will cause your app be rejected. See my answer in Is there any way at all that I can tell how hard the screen is being pressed for the usage of this property.

这篇关于iPad:通过手指在屏幕上触摸来测量/检测覆盖区域(不仅仅是触摸坐标)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆