title: Calling a NSTimer method
body: <p>I'm new to working with timers on the <code>iPhone</code> and would need some support.</p>
  
  <p>I have a method as below that takes the time and update a <code>UILabel</code> in my <code>userinterface</code>. I also have an <code>NSTimer</code> that calls that method once a second (I only show hours and minutes). This works just fine, except for the first second the App is live (as I understand it takes one second before the <code>timer</code> calls the method). </p>
  
  <p>I would like to call my method from <code>viewDidLoad</code>, but how can I supply the right arguments? Or is there a better way of doing this?</p>
  
  <pre><code>// Timer for updating time
  [NSTimer scheduledTimerWithTimeInterval:1.0f 
                                   target:self 
                                 selector:@selector(updateTime:) 
                                 userInfo:nil 
                                  repeats:YES];   
  
  
  -(void)updateTime: (NSTimer *) timer {
  
      currentTime = [NSDate date];
      NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
      // display in 12HR/24HR (i.e. 11:25PM or 23:25) format according to User Settings
      [dateFormatter setTimeStyle:NSDateFormatterShortStyle];
      NSString *currentTimeString = [dateFormatter stringFromDate:currentTime];
      [dateFormatter release];
  
      timeLabel.text =  currentTimeString;
  }
  </code></pre>
  
  <p>Appreciate anything that would point me in the right direction.</p>