title: Setting static method as action of UITapGestureRecognizer in Swift
body: <p>I am creating a <code>UIView</code> programmatically in static method and want to add <code>UITapGestureRecognizer</code> which will call another static method in my <code>Helper</code> class.</p>
  
  <p><strong>Helper.swift</strong> : </p>
  
  <pre><code>static func showLoadingPopUp(frame: CGRect) -&gt; UIView {
    let transView = UIView.init(frame: frame!)       
    let tapGesture = UITapGestureRecognizer(target: self, action: "transViewTapped:")
    transView.addGestureRecognizer(tapGesture)
    return transView
  }
  
  static func transViewTapped(gesture: UITapGestureRecognizer) {
    print("Oh Tapped!!!")
  }
  </code></pre>
  
  <p>But it ends up with the following message probably because of the static nature of my method. Also <code>Helper.swift</code> is simple swift class (not <code>UIView</code> or <code>UIViewController</code>) </p>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>Unrecognized selector +[JaClassified.Helper transViewTapped:]</p>
  </blockquote>