Ios swift – UIButton's sender.tag is always 0, despite different set values
I take some UIButton on a storyboard,then i bind these Button with a IBAction function,but the value of sender.tag always 0 import UIKit import AVFoundation class ViewController: UIViewController { // 告诉系统等使用的时候是有值的,所以这里不需要 var player: AVAudioPlayer! let sounds = ["note1", "note2", "note3",…