私はそのような二日目の最初の日と「2日目」に「1日目」のようなテキストを持つローカル通知をスケジュールする:毎日異なるテキストでローカル通知をスケジュールする方法はありますか?
let notificationSettings = UIUserNotificationSettings(forTypes: [.Alert, .Badge, .Sound], categories: nil)
UIApplication.sharedApplication().registerUserNotificationSettings(notificationSettings)
let notification = UILocalNotification()
notification.fireDate = // ex: 5 am
notification.alertBody = "Day 1" // on second day it want to be "Day 2" , on third day it want to be "Day 3" like that..
notification.alertAction = "be awesome!"
notification.soundName = UILocalNotificationDefaultSoundName
notification.userInfo = ["CustomField1": "w00t"]
UIApplication.sharedApplication().scheduleLocalNotification(notification)
これを行うには、任意の可能性はありますか?
ユーザーは
が通知を設定することが可能です「3日目」と「2日目」として、二日目
三日目「1日目」として
の最初の日の通知を受け取りますそんな?
はい、あなたはテキストを変更し、その後、長い一日のためにそれを数えます。 – Khuong
申し訳ありませんが、あなたが言ったことを得ることができません。私に説明してください... –
私はあなたが長い= 1日の時間を数えなければならないことを意味します。次に、テキストを変更します。 – Khuong