Having inherited a project from an Outsourced development company, I've been asked to modify the application and add some features.
Being a bit of a perfectionist (but still relatively new) I'm trying to eliminate Warnings from the Project when I compile.
I'm getting this error
Unused variable 'timer' at the end of a function
Which is setting a refresh button back to enabled after the timeout.
How can I rework this so that I don't get the unused (I can't comment it out, because it's actually doing what it's supposed to by resetting the state after the timer elapses)..
-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
{
//lots of previous code
NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:10.0 target:self selector:@selector(enableRefresh) userInfo:nil repeats:NO];
}