任何人都可以幫助我得到這個工作我是一個noob programer,我無法找到一種方法來做到這一點。需要幫助將音頻文件添加到快速按鈕
代碼如下
import UIKit
class ViewController: UIViewController {
@IBAction func pistolButton(sender: AnyObject) {
}
override func viewDidLoad() { // I want my audio file to play when button is tapped
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
請編輯您的代碼以獲得某種感覺,過多的空白空函數並不是一個好問題。請參閱幫助中心獲取有關詢問優質問題的指導。 – Ajean 2014-10-27 01:29:45