title: Swift - Value of Type ViewController has no member *functionName*
body: <p>In my app i have several scenarios, each showing a different <code>UIAlertController</code>, so i created a function to show this alert, but i can't seem to call self.Function inside the "okAction" . I'm getting this error :</p>
  
  <blockquote>
    <p>Value of type <code>'ViewController'</code> has no member <code>'doAction'</code></p>
  </blockquote>
  
  <p>Here's the code :</p>
  
  <pre><code>func showAlertController( titleOfAlert: String, messageOfAlert : String, doAction : () )
  {
      let refreshAlert = UIAlertController(title: titleOfAlert, message: messageOfAlert, preferredStyle: .Alert)
  
      let okAction = UIAlertAction(title: "Save", style: UIAlertActionStyle.Default) {
          UIAlertAction in
  
          self.doAction()
      }
  
      let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.Default) {
          UIAlertAction in
      }
  
      refreshAlert.addAction(okAction)
      refreshAlert.addAction(cancelAction)
  
      self.presentViewController(refreshAlert, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>Here's one of the functions that i'm calling :</p>
  
  <pre><code>func changeLabel1()
  {
      label.text = "FOR BUTTON 1"
  }
  </code></pre>
  
  <p>How can i solve it ?</p>