PDA

View Full Version : how to call accelerometer from other class?




PizzaTray
Nov 1, 2009, 04:54 AM
I tried to put function from other class in the accelerate method:

-(void) accelerometer:(UIAccelerometer *) acc didAccelerate:(UIAcceleration *) acceleration {
[monst accelMonster:acc didAccelMonster:acceleration];
}


and the accelerometer not responding from some reason..
any ideas?:cool:

EDIT: fix it :) !