、あなたがCGFloat
あるtouch.majorRadius
プロパティにアクセスすることができ、10.45の倍数で成長し、ミリメートルで触れた領域の半径に比例しています。 touch.majorRadiusToleranceは、iOS8で使用できる2番目のプロパティで、タッチ半径情報の精度を示します。私の測定では、それは常にステップサイズの半分であった(majorRadius
)。
iPad Proでは、タッチスクリーンは3倍の感度があり、Appleのペンシルから弱い信号を受け取ります。これは古いiPadモデルのしきい値を下回っています。鉛筆の接触半径は0.25と報告され、わずかな指接触でさえ20.84以上と報告される。
は、あなたのUIViewのメソッド内でこのようにそれを使用します。
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
// Regular multitouch handling.
[super touchesBegan:touches withEvent:event];
CGPoint center = [touch locationInView:self];
NSLog(@"Touch detected at %6.1f | %6.1f", center.x, center.y);
CGFloat radius = [touch majorRadius];
NSLog(@"Radius = %5.1f; lower limit = %5.1f; upper limit = %5.1f", radius, radius-touch.majorRadiusTolerance, radius+touch.majorRadiusTolerance);
}
のGarageBandは、テストタッチ速度のための加速度計を使用しています - そのために、あなたの仮定が間違っています。 – Till