title: How do I add a IBAction to a button programmatically in Swift 4?
body: <p>How do I add a IBAction to a button programmatically?</p>
  
  <pre><code>button.addTarget(self, action: Selector(("buttonAction:")), for: 
  .touchUpInside)
  
  func buttonAction(sender: Any) {
      print("test")
  }
  </code></pre>
  
  <p>That gives me an "<strong>Thread 1: signal SIGABRT</strong>" error.</p>