title: Swift, how to play sound when press a button
body: <p>I'm very beginner of programming and start studying Swift to make a piano app for fun.</p>
  
  <p>I have a trouble to play a sound when press a button.
  I've searched some website but I'm too beginner to understand...</p>
  
  <p><a href="http://www.tmroyal.com/playing-sounds-in-swift-avaudioplayer.html" rel="noreferrer">http://www.tmroyal.com/playing-sounds-in-swift-avaudioplayer.html</a>
  <a href="http://www.rockhoppertech.com/blog/swift-avfoundation/" rel="noreferrer">http://www.rockhoppertech.com/blog/swift-avfoundation/</a></p>
  
  <p>Could you please tell me how can I play my "C.m4a" sound when press a "PainoC" button?</p>
  
  <p>Here is my "view controller.swift".</p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
      override func viewDidLoad() {
          super.viewDidLoad()   
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
      }
  
      @IBAction func PianoC(sender: AnyObject) {
      }
  }
  </code></pre>