Creating a local notification to fire at a specific time
问题 I need my application to store some local notifications that should be launched on a specific time. My application is simple. The user can book times using a UIDatePicker . The notification is to be fired 2 minutes before that booked time. For now i am trying to manually insert a time that the notification should be fired at. I am using this code: let notification = UILocalNotification() self.timePicked = " 22:38:00 +0000" timeForLocalPush = defaults.objectForKey("timeForLocalPush") as!