I have two view controllers.MainViewcontroller has the - (void)accelerometer: method in it and just another SecondViewController. I would like to pass the accelerometer data from the main to the second but I don't know the correct way to pas it.
(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration { if (self.monitoring) {
UIAccelerationValue x = acceleration.x, y = acceleration.y, z = acceleration.z; UIAccelerationValue module = sqrt(x * x + y * y + z * z);
How can I get the UIAccelerationValue in the second view.
Thank you