ios - Change the alertBody of a repeating local notification -
is possible have repeating local notification different alertbody each time? if not, how implement such functionality?
code (edit)
let notification = uilocalnotification() notification.firedate = nsdate(timeintervalsincenow: 60) // randomitem extension in code. notification.alertbody = self.athkar.randomitem() notification.soundname = uilocalnotificationdefaultsoundname notification.repeatinterval = nscalendarunit.minute uiapplication.sharedapplication().schedulelocalnotification(notification)
Comments
Post a Comment