title: How to set repeat frequency in User Notification
body: <p>Till <code>iOS 9</code> we write <code>local notifications</code> like this </p>
  
  <pre><code>UILocalNotification* localNotification = [[UILocalNotification alloc] init];
  localNotification.fireDate = pickerDate;
  localNotification.alertBody = self.textField.text;
  localNotification.timeZone = [NSTimeZone defaultTimeZone];
  localNotification.repeatInterval = NSCalendarUnitMinute;
  localNotification.applicationIconBadgeNumber = [[UIApplication sharedApplication] applicationIconBadgeNumber] + 1;
  [[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
  </code></pre>
  
  <p>and in local notification we have <code>repeatInterval</code>, Now in <code>WWDC2016</code> Apple announced <code>User Notification</code> which contains </p>
  
  <ul>
  <li>UNTimeIntervalNotificationTrigger.</li>
  <li><p>UNCalendarNotificationTrigger.</p>
  
  <pre><code>UNTimeIntervalNotificationTrigger* trigger = [UNTimeIntervalNotificationTrigger triggerWithTimeInterval:60 repeats:YES];
  </code></pre></li>
  </ul>
  
  <p>the code above will trigger notification after every minute. But can't set the date.</p>
  
  <pre><code>NSDateComponents* date = [[NSDateComponents alloc] init];
  date.hour = 8;
  date.minute = 30;
  
  UNCalendarNotificationTrigger* triggerC = [UNCalendarNotificationTrigger triggerWithDateMatchingComponents:date repeats:YES];
  </code></pre>
  
  <p>the code above date can be set and repeat will trigger tomorrow at 8:30 not not after minute.</p>
  
  <p>In iOS 10 <code>User Notification</code> how I can set date time with repeat frequency just like we can set in <code>UILocalNotification</code>?</p>
  
  <p>I want to schedule <code>User Notification</code> tomorrow at 8:30pm and keep repeating after every minute just like the code I specified at the top regarding <code>local notification</code> </p>