I am trying to get the accelerometer to detect shakes in a separate view and the accelerometer method does not get called?
When I place code to set the accelerometer attributes in the controllers viewDidLoad method and add the ......didAccelerate:(UIAcceleration *) acceleration in the implementation file for the controller shakes are detected.
I'm a novice to iphone development and think that perhaps the code:
accelerometer.delegate = self;
should point to the view? Rather than self?
Any help would be really appreciated. I'm really not sure how to solve this?