views:

59

answers:

1

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

A: 

i am developing the contact application in i phone but i don't know how to retreve the contacts from one view to another view pls send me any one

nag