title: timer.invalidate() not working on same view in Swift
body: <p>I am using Swift to develop an app that uses timer so i am using this code for timer</p>
  
  <pre><code>var timer = NSTimer()
  timer=NSTimer.scheduledTimerWithTimeInterval(1.0,target:self,selector:Selector("updateTimeLabel"), userInfo:nil , repeats: true)
  </code></pre>
  
  <p>my problem is this when this game complete a view appears as subview of current view and the timer invalidates using </p>
  
  <pre><code>timer.invalidate()
  </code></pre>
  
  <p>and on this subview there is a button to start a new game when this button is pressed a new game is started but the timer starts from the time it stopped.</p>
  
  <p>suppose the game finished in 00:10 time so the subview appears and if we start new game then the time will start from 00:11. This works fine when user moves to another view and then comes back to the same view for game play, in this case the timer starts from 00:00
  pls tell where i am wrong </p>
  
  <p>THANKS IN ADVANCE.</p>