-1

I want to recognize a big tap on the iPhone back using accelerometer? How i can do this?

Thanks the answers,

flatronka
  • 1,061
  • 25
  • 51

1 Answers1

1

An example from Apple.

ohho
  • 50,879
  • 75
  • 256
  • 383
  • thanks, but i need a more specific thing example an equation. – flatronka Feb 23 '12 at 07:43
  • Why not try playing around with Apple's sample code that provides a nice real-time graph of the 3 accelerometer axes. Tap on the back and see how each axis responds depending on the current orientation of the device. It should give you at least a starting point for some kind of equation. – UIAdam Feb 23 '12 at 09:02
  • I try to calculate a value, which filters the taps, but on other device the value is change. Example: on iPad 2 filter.z > 1.3 then the user tap the phone, but in ipod Touch 3 the correct value is 2.5 .... – flatronka Feb 23 '12 at 09:29