When i am Building this code i am getting WARNING that INVALID Integer to pointer conversion.
But when I run the application it gets Crash …..
can any one help me… I am getting warning at withObject:[sender tag]
i have frontButtonScaleUp Method which takes (NSIngeter) argument… and also tag returns NSInteger value…
- (IBAction)frontButtonReleased:(id)sender
{
const double delay = 0.3;
double elapsed = CACurrentMediaTime() - tapStartTime;;
if (elapsed >= delay)
[self frontButtonScaleUp:[sender tag]];
else
[self performSelector:@selector(frontButtonScaleUp) withObject:[sender tag] afterDelay:delay - elapsed];
}
I have made work my code with little modifications like below:
here i have made two new methods for each button and both having no arguments so… that the problem of passing withObject was solved….