title: ios scheduledTimerWithTimeInterval for amount of time
body: <p>I want to use scheduledTimerWithTimeInterval to do a periodic task for certain amount of time lets say one hour. but How do I implement on my code. Here is my code:</p>
  
  <pre><code>timer = [NSTimer scheduledTimerWithTimeInterval: 0.1
                                            target: self
                                          selector: @selector(doSomething:)
                                          userInfo: nil
                                           repeats: YES];
  </code></pre>