title: How to create multiple Local Notifications
body: <p>I'm trying to create multiple local notifications, in my app, but for some reason only the First Notification Pop's up, the rest just does not work, this is my code.</p>
  
  <p>I have a class named <strong>criaAlertas</strong>, which is responsible for creating the notifications, in that class i have the following method: </p>
  
  <pre><code>-(void)setarNotificacao:(NSInteger)quando nome:(UILocalNotification *)notification 
  {
      UIApplication *myapp = [UIApplication sharedApplication];
  
      notification.fireDate = [NSDate dateWithTimeIntervalSinceNow:quando];
      notification.alertBody = @"Nice";
      notification.timeZone = [NSTimeZone defaultTimeZone];
      notification.soundName = UILocalNotificationDefaultSoundName;
  
      NSMutableArray *arrayOfNOtifications = [[NSMutableArray alloc]init];
  
      [arrayOfNOtifications addObject:notification];
      myapp.scheduledLocalNotifications = arrayOfNOtifications;
  }
  </code></pre>
  
  <p>So i instantiated a object of that class, and tried to do this:</p>
  
  <pre><code>    criaAlertas *novoAlerta = [[criaAlertas alloc]init];
      UILocalNotification *notaUm = [[UILocalNotification alloc]init];
      UILocalNotification *notaDois = [[UILocalNotification alloc]init];
      [novoAlerta setarNotificacao:15 nome:notaUm];
      [novoAlerta setarNotificacao:30 nome:notaDois];
  </code></pre>
  
  <p>What i'm doing wrong?</p>