Where this:
distanceTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(applyShot:newPositionOne.x with:newPositionOne.y) userInfo:nil repeats:NO];
^^ This doesn't work.
Must equal this
[self applyShot:newPositionOne.x with:newPositionOne.y];
I basically need a delay before running this method, and it passes the variables because they'll be different by the time the method runs, so it has to remember them somehow.
However, I cannot for the life of me figure out how to pass variables in an @selector.
I've done it before with button.tag for example, but never for this.
Any help will be appreciated, thank you.
I understand I can just set global variables, but is is possible to pass them?