title: Swift add show action to button programmatically
body: <p>how can I add action to button programmatically. I need to add show action to buttons in mapView. thanks</p>
  
  <pre><code>let button = UIButton(type: UIButtonType.Custom) as UIButton
  </code></pre>