I'm running into a problem with some of my code on iPhone3GS running iOS5.0
The following block never gets executed, even though it gets called fine on iPhone4 with iOS5.0.
The log statement never appears, and the breakpoint never gets triggered. I checked, and both the motion manager and the queue are not null.
[motionManager startDeviceMotionUpdatesToQueue:motionQueue withHandler:^(CMDeviceMotion *motion, NSError *error) {
NSLog(@"motion event received");
//...
}];
Am I missing something or do I need to re-write my code to work without block queues?
Thank you for any input on the ussue!
Update:
I've checked this method, and it works:
[motionManager startAccelerometerUpdatesToQueue:motionQueue withHandler:^(CMAccelerometerData *accelerometerData, NSError *error) {
NSLog(@"accelerometerData event received");
}];