私はポップアップの通知を受けようとしていましたが、私は続けるスレッド1:SIGNAL SIGABRTどうすればよいですか?ここに私のコードです:スレッド1:SIGNAL SIGABRT;私は何をしますか?
import UIKit
import UserNotifications
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func pushNotification(_ sender: AnyObject) {
var AlertView = UIAlertController(title: "Time for your call!", message: "Press go to continue", preferredStyle: UIAlertControllerStyle.alert)
AlertView.addAction(UIAlertAction(title: "Go", style: UIAlertActionStyle.default, handler: nil))
self.present(AlertView, animated: true, completion: nil)
}
}
コードはokです更新されない - あなた'pushNotification()'はどのように呼び出されますか? 'var alertView' –
Main.Storyboardのボタンから' pushNotification() 'が呼び出されます –
バインディングアウトレットアクションに問題がある可能性があります - 接続のインスペクタをチェックし、不正なバインドを削除してください –