dont recognize a NSTimer

Discussion in 'iPhone/iPad Programming' started by estupefactika, Apr 28, 2009.

  1. macrumors member

    Joined:
    Feb 16, 2009
    Location:
    Alcobendas (Madrid)
    #1
    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:
    Code:
    -(void) showImg:(NSTimer*) timer {
       NSLog(@"test");
    }
    -(void)setupImage {
    
    ....
    [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(showImg:) userInfo:nil repeats:NO];
    
    }
    
    Any suggestion? Thanks
     
  2. macrumors regular

    Joined:
    Apr 9, 2009
    #2
    the error has to be somewhere outside of the code you provided, your code is fine.
     

Share This Page