title: Swift: Passing a parameter to selector
body: <p>Using Swift 3, Xcode 8.2.1</p>
  
  <p>Method:</p>
  
  <pre><code>func moveToNextTextField(tag: Int) {
     print(tag)
  }
  </code></pre>
  
  <p>The lines below compile fine, but <code>tag</code> has an uninitialized value:</p>
  
  <pre><code>let selector = #selector(moveToNextTextField)
  Timer.scheduledTimer(timeInterval: 0.2, target: self, selector: selector, userInfo: nil, repeats: false)
  </code></pre>
  
  <p>However, I need to pass a parameter.  Below fails to compile:</p>
  
  <pre><code>let selector = #selector(moveToNextTextField(tag: 2))
  
  Swift Compile Error:
  Argument of #selector does not refer to an @objc method, property, or initializer.
  </code></pre>
  
  <p>How can I pass an argument to a selector?</p>