每次都可以使用不同的alertBody重复本地通知吗?如果没有,我怎么能实现这样的功能?
代码(编辑)
let notification = UILocalNotification()
notification.fireDate = NSDate(timeIntervalSinceNow: 60)
// randomItem is an extension in the code.
notification.alertBody = self.athkar.randomItem()
notification.soundName = UILocalNotificationDefaultSoundName
notification.repeatInterval = NSCalendarUnit.Minute
UIApplication.sharedApplication().scheduleLocalNotification(notification)