title: How do I call a button function when the button is not being pressed
body: <p>I have an IBAction connected to a button, and I wanted to know if there is any way to run that function even if the button is not being pressed. This is what I tried...</p>
  
  <p>Note: I am using swift for this project.</p>
  
  <pre><code>//I get an error when I type this code?
  self.buttonPressed()
  
  @IBAction func buttonPressed(sender: AnyObject) {
  
      print("Called Action")
  
  }
  </code></pre>