title: Notification in Swift every day at a set time?
body: <p><strong><em>If anyone gets confused and thinks that this is a duplicate of my question from yesterday, it's not. There I was asking how to call a function every day, here I am asking how to call a notification at a specific time every day.</em></strong></p>
  
  <p>I am looking for a way to repeat a local notification every day at 7.00AM. I currently have this code setup to get the day, month, year etc.</p>
  
  <pre><code>let date = NSDate()
      let calendar = NSCalendar.currentCalendar()
      let components = calendar.components(.CalendarUnitHour | .CalendarUnitMinute | .CalendarUnitMonth | .CalendarUnitYear | .CalendarUnitDay, fromDate: date)
      let hour = components.hour
      let minutes = components.minute
      let month = components.month
      let year = components.year
      let day = components.day
  </code></pre>
  
  <p>How do I call a notification every day when the time is 7.00 AM?</p>