views:

29

answers:

1

I can't get didAccelerate to trigger. I have the delegate implemented in my header file. I've set a breakpoint in the method:

- (void) accelerometer: (UIAccelerometer *)accelerometer didAccelerate: (UIAcceleration *)acceleration {
    int i = 0;
}

I've tried it with two different apps but still nothing. Any ideas on what I'm doing wrong?

+1  A: 

try to set accelerometer's delegate to self. BTW, did you try to check it on a real device?

Morion
Yes - I have tried it on a real device. Setting the delegate to self worked. thanks.
4thSpace