title: How to reset NSTimer? swift code
body: <p>So I'm creating an app/game where you tap a button corresponding to a picture before the timer runs out and you lose. You get 1 second to tap the button, and if you choose the right button then the timer resets and a new picture comes up. I'm having trouble reseting the timer. It fires after one second even after I attempt to reset it. Here's the code:</p>
  
  <p>loadPicture() runs off viewDidLoad()</p>
  
  <pre><code>func loadPicture() {
      //check if repeat picture
      secondInt = randomInt
      randomInt = Int(arc4random_uniform(24))
      if secondInt != randomInt {
          pictureName = String(self.PicList[randomInt])
          image = UIImage(named: pictureName)
          self.picture.image = image
          timer.invalidate()
          resetTimer()
  
      }
      else{
          loadPicture()
      }
  }
  </code></pre>
  
  <p>and here's the resetTimer() method:</p>
  
  <pre><code>func resetTimer(){
          timer = NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: Selector("gameOverTimer"), userInfo: nil, repeats: false)
  
  }
  </code></pre>
  
  <p>I think it may have something to do with NSRunloops? I'm not sure. I don't even know what a NSRunloop is to be honest.</p>