dont recognize a NSTimer

Discussion in 'iOS Programming' started by estupefactika, Apr 28, 2009.

  1. estupefactika
    Expand Collapse
    macrumors member

    Feb 16, 2009
    Alcobendas (Madrid)
    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 {
    -(void)setupImage {
    [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(showImg:) userInfo:nil repeats:NO];
    Any suggestion? Thanks
  2. BlackWolf
    Expand Collapse
    macrumors regular

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

Share This Page