Hi,
I have written some code to allow for UILocalNotifications but using the code below, it doesn't show on the triggered time and date I think due to the fact that the NSCalendar is not set to Georgian?! I currently have it set to: NSCalendar.currentCalendar()
Please help?
//date
var dateComp:NSDateComponents = NSDateComponents()
dateComp.year = 2016
dateComp.month = 02
dateComp.day = 04
dateComp.hour = 21
dateComp.minute = 49
dateComp.timeZone = NSTimeZone.systemTimeZone()
var calendar:NSCalendar = NSCalendar.currentCalendar()
var date:NSDate = calendar.dateFromComponents(dateComp)!
var notification:UILocalNotification = UILocalNotification()
notification.category = "FIRST_CATEGORY"
notification.alertAction = "heyaaa, I notified you"
notification.fireDate = date
Application.sharedApplication().scheduleLocalNotification(notification)