title: How to create Selector with parameters from string
body: <p>I am writing a program using Swift 3.1 and Xcode 8.3.3. I want to create a class, responsible for moving entire view when keyboard appears and disappears. But I faced difficulties with creating custom Selector with parameters from string. To show or hide keyboard we need function:</p>
  
  <pre><code>func keyboardWillShow(notification: Notification) {
  //Code moving view when keyboard appears
  }
  </code></pre>
  
  <p>I am trying to create a selector like this:</p>
  
  <pre><code>let selector = Selector(("keyboardWillShow")
  NotificationCenter.default.addObserver(view, selector: selector, name: .UIKeyboardWillShow, object: anyView.view.window)
  </code></pre>
  
  <p>It is compiling, but when keyboard appears, it crashes.
  Because it is independent class I cannot use this construction:</p>
  
  <pre><code>#selector(keyboardWillShow)
  </code></pre>
  
  <p>Because it transforms Swift function to Objective-C function (adding @objc).
  So question is: how to create a Selector form with parameters string?</p>
  
  <p>P. S. I can put the whole code there but I don't want question to be very big, so I will edit question if somebody asks...</p>