CMAccelerometerData class Vs. deprecated UIAccelerometer class
问题 Based on this documentation, the CMAccelerometerData class (found in the Core Motion framework) has a property of type CMAcceleration called acceleration that is a typedef of a struct containing 3 values (double x, double y, double z) I'm rather new to Objective-C (I only know C++..) so my question is this : How do I access, let's say the double y value kept in that property, at some point during my code? Do I first create an instance of the CMAccelerometerData class like this :