– accelerometer:didAccelerate: Deprecated in iOS 5.0


#1

Hi,

I get this message when I look up “UIAccelerometerDelegate” in the help:
– accelerometer:didAccelerate: [color=#FF0000]Deprecated in iOS 5.0[/color]

See:
developer.apple.com/library/IOs/ … egate.html

Can you please post a correction of this chapter?

Thank you,
Gunnar


#2

The UIAccelerometer class is gone. You’ll have to use Core Motion and the new block-based API. Check out CMMotionManager.