title: UIButton with single press and long press events swift
body: <p>I want to trigger two action on <code>button click</code> and <code>button long click</code>. I have add a <code>UIbutton</code> in my interface builder. How can i trigger two action using <code>IBAction</code> can somebody tell me how to archive this ?</p>
  
  <p>this is the code i have used for a button click </p>
  
  <p><code>@IBAction func buttonPressed (sender: UIButton) {
  ....
  }</code></p>
  
  <p>can i use this method or do i have to use another method for long click  ?</p>