1
スイッチの中には、それ自身を繰り返すことができる通知のためのトリガーがあります。スイッチがオフのときにどうすれば停止させることができますか?アプリケーションからの通知を停止する方法
let notification = UILocalNotification()
notification.fireDate = NSDate(timeIntervalSinceNow: 5)
notification.repeatInterval = NSCalendarUnit.Minute
notification.alertBody = "Please Look at me"
notification.soundName = UILocalNotificationDefaultSoundName
notification.userInfo = ["CustomField1": "w00t"]
guard let settings = UIApplication.sharedApplication().currentUserNotificationSettings() else { return }