title: @selector() in Swift?
body: <p>I'm trying to create an <code>NSTimer</code> in <code>Swift</code> but I'm having some trouble.</p>
  
  <pre><code>NSTimer(timeInterval: 1, target: self, selector: test(), userInfo: nil, repeats: true)
  </code></pre>
  
  <p><em><code>test()</code> is a function in the same class.</em></p>
  
  <hr>
  
  <p>I get an error in the editor: </p>
  
  <blockquote>
    <p>Could not find an overload for 'init' that accepts the supplied
    arguments</p>
  </blockquote>
  
  <p>When I change <code>selector: test()</code> to <code>selector: nil</code> the error disappears.</p>
  
  <p>I've tried:</p>
  
  <ul>
  <li><code>selector: test()</code></li>
  <li><code>selector: test</code></li>
  <li><code>selector: Selector(test())</code></li>
  </ul>
  
  <p>But nothing works and I can't find a solution in the references.</p>