How To Use UILocalNotification In Swift
I am trying to figure out how to setup a UILocalNotification in swift but I am not having a lot of luck. I am trying this: var notification = UILocalNotification() notification.timeZone = NSTimeZone.defaultTimeZone() var dateTime = NSDate.date() notification.fireDate(dateTime) notification.alertBody("Test") UIApplication.sharedApplication().scheduleLocalNotification(notification) For starters, I am not sure if this is the proper way to get the current date time. In .Net, I would just do DateTime.Now(). Second, when I try this, I get an error that says: '(@lvalue NSDate!) -> $T3' is not