From db0a996fb69376fd59cbe7079aba56328ecec546 Mon Sep 17 00:00:00 2001 From: "guanghui.tian" Date: Thu, 26 Aug 2021 21:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B8=85=E7=A9=BA=E5=8F=8A?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=80=BC=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PushWithP8/MainViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PushWithP8/MainViewController.swift b/PushWithP8/MainViewController.swift index 9a5054e..0f2c123 100644 --- a/PushWithP8/MainViewController.swift +++ b/PushWithP8/MainViewController.swift @@ -48,6 +48,7 @@ class MainViewController: NSViewController { {"aps":{"alert":"这是推送标题","body":"这是推送内容,这里的文字长度是有限制的","sound":"default","badge":1}} """ envSwitch.state = NSControl.StateValue.off + resultLabel.stringValue = "" } @IBAction func clearAction(_ sender: Any) { @@ -58,6 +59,7 @@ class MainViewController: NSViewController { deviceTokenTextField.stringValue = "" payLoadTextField.stringValue = "" envSwitch.state = NSControl.StateValue.off + resultLabel.stringValue = "" } @IBAction func sendAction(_ sender: NSButton) {