Swift local notification with dynamic alert body

后端 未结 1 1700
情深已故
情深已故 2021-01-24 12:27

So I can create a local notification like this

    var localNotification = UILocalNotification()
    localNotification.fireDate = NSDate(timeIntervalSinceNow: 7)         


        
1条回答
  •  悲哀的现实
    2021-01-24 13:08

    You can't make it dynamic. You would need separate notifications with separate text for each of the separate times.

    0 讨论(0)
提交回复
热议问题