how to call accelerometer from other class?

Discussion in 'iOS Programming' started by PizzaTray, Nov 1, 2009.

  1. macrumors newbie

    Joined:
    Oct 31, 2009
    #1
    I tried to put function from other class in the accelerate method:
    Code:
    -(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 :) !
     

Share This Page