Because parameter sender is in type Any instead of UIButton. Change the method signature to: @IBAction func buttonAction(_ sender: UIButton) { if let ...
確定! 回上一頁