PDA

View Full Version : dont recognize a NSTimer




estupefactika
Apr 28, 2009, 04:20 AM
Hi, I'm using a NSOperation to download an image in background. When image has already been downloaded I would like to show it with a delay but dont recognize my NSTimer, my showImg method never is called:

-(void) showImg:(NSTimer*) timer {
NSLog(@"test");
}
-(void)setupImage {

....
[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(showImg:) userInfo:nil repeats:NO];

}


Any suggestion? Thanks



BlackWolf
Apr 28, 2009, 10:58 AM
the error has to be somewhere outside of the code you provided, your code is fine.