title: Swift performSelector:withObject:afterDelay: is unavailable
body: <p>I have an app in Objective C that I'm transitioning to Swift. In Objective C, I have this method:</p>
  
  <p><code>[self.view performSelector:@selector(someSelector) withObject:self afterDelay:0.1f];</code></p>
  
  <p>I'm working with Swift and I can't figure out how to do this. I've tried:</p>
  
  <p><code>self.view.performSelector(Selector("someSelector"), withObject: self, afterDelay: 0.1)</code></p>
  
  <p>Here's the error that I get: <code>'performSelector' is unavailable: 'performSelector' methods are unavailable</code></p>
  
  <p>What call would I use to call a method <code>afterDelay</code>?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Here's what I ended up with:</p>
  
  <pre><code>extension NSObject {
  
      func callSelectorAsync(selector: Selector, object: AnyObject?, delay: NSTimeInterval) -&gt; NSTimer {
  
          let timer = NSTimer.scheduledTimerWithTimeInterval(delay, target: self, selector: selector, userInfo: object, repeats: false)
          return timer
      }
  
      func callSelector(selector: Selector, object: AnyObject?, delay: NSTimeInterval) {
  
          let delay = delay * Double(NSEC_PER_SEC)
          let time = dispatch_time(DISPATCH_TIME_NOW, Int64(delay))
          dispatch_after(time, dispatch_get_main_queue(), {
              NSThread.detachNewThreadSelector(selector, toTarget:self, withObject: object)
          })
      }
  }
  </code></pre>