I am calling a function in Accelerometer delegate method like this
This is in ViewControllerX.m
-(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
{
[self methodX];
}
i am also calling another function in interface method like this
This method is in ViewControllerY
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
[object methodY];
//Here "object" is ViewControllerX.m 's Object,
}
The problem is, when i shake my iPhone
methodY is calling instead of, methodX.
can any one tell me how to handle this?