title: 4 Questions about Selectors in Swift
body: <p>Sorry for these questions</p>
  
  <p>I have 4 questions about Selector in swift.</p>
  
  <p><strong>FIRST Question</strong></p>
  
  <p>I am wondering what is the proper way to use selector in swift</p>
  
  <pre><code>closeBarButtonItem = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Stop, target: self, action: Selector("closeBarButtonItemClicked:"));
  </code></pre>
  
  <p>VS</p>
  
  <pre><code>closeBarButtonItem = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Stop, target: self, action: "closeBarButtonItemClicked:");
  </code></pre>
  
  <p>Should we use Selector("methodName:") or "methodName:" right away?</p>
  
  <p>Both way works but which one is the correct way? </p>
  
  <p><strong>SECOND Question</strong></p>
  
  <p>How do we call a function with a parameter in Swift? Let's say I want to call a function like this</p>
  
  <pre><code>func methodName(parameterOne : String, parameterTwo: String)
  </code></pre>
  
  <p><strong>THIRD Question</strong> </p>
  
  <p>How do we call a type method using Selector in swift? is it even possible at all?</p>
  
  <pre><code>class SomeClass {
  class func someTypeMethod() {
  // type method implementation goes here
    }
  }
  </code></pre>
  
  <p><strong>FOURTH Question</strong></p>
  
  <p>What is the purpose of that colon behind the function name in Selector?</p>