I have an NSTimer that has an NSNumber in its userInfo
fireTimer = [NSTimer scheduledTimerWithTimeInterval:6.0
target:self
selector:@selector(fireTileAddingToColumn:)
userInfo:myNumber
repeats:YES];
After the NSTimer is created and has run a couple of times, I would like to be able to change the value of myNumber and have it reflect in fireTileAddingToColumn: I have not had any luck getting this to work. Does anyone have any suggestions?
You can always pass an object holding the userInfo to the timer:
and the data change will be reflected in the selector