title: UILocalNotification sound run in a loop
body: <p>I am having an aiff file of 5.0 seconds. I want to run it in loop up to 30 seconds. Please guide how could I do that. 
  Right now I am setting the notification in the normal way by the following code- </p>
  
  <pre><code>//Function to schedule local notification
  -(void)schedulelocalnotification:(NSDate *)particularfiredate ringtone: (NSString *)particularringtone name:(NSString *)alarmname info:(NSDictionary *)dicttext
  {
      UILocalNotification *notification = [[UILocalNotification alloc] init];
      notification.fireDate = particularfiredate;
      notification.soundName = [arrayAIFFFiles objectAtIndex:[arraysoundfilesnames indexOfObject:particularringtone]];
      notification.alertBody = alarmname;
      notification.userInfo = dicttext;
  
      [[UIApplication sharedApplication] scheduleLocalNotification:notification];
  }
  </code></pre>
  
  <p>Please note that I don't want the notification banner and the notifications to appear 6 times, Just the sound should repeat up to 30 seconds.</p>
  
  <p>If I am not doing this, And adding a sound file of 30 seconds, then the sound is continuous till 30 seconds, If the user closes the notification in between, and opens the app, The sound continues to play.That issue has been stated here : <a href="https://stackoverflow.com/questions/24527704/the-uilocalnotification-sound-does-not-stop-playing">The UILocalNotification sound does not stop playing</a></p>