title: How do I make my iPhone app display a top banner alert, such as the Mail app does?
body: <p>I have searched for this, and I can't find any documentation about doing these banner / notification / alerts... but I would really like to implement it.
  In case my description in words is not clear, here is a picture of what I would like to do:</p>
  
  <p><a href="https://i.stack.imgur.com/7NSZN.png" rel="noreferrer">1</a>: <img src="https://i.stack.imgur.com/7NSZN.png" alt="screen shot"></p>
  
  <p>I tried using this code:</p>
  
  <pre><code>UILocalNotification *note = [[UILocalNotification alloc] init];
  [note setAlertBody:[NSString stringWithFormat:@"%@ scanned", result]];
  [note setAlertAction:@"New Scanned Image"];
  [[UIApplication sharedApplication] presentLocalNotificationNow:note];
  </code></pre>
  
  <p>And it worked fine, such that it displayed the notification in the notifications center, but there was no banner alert.</p>
  
  <p>So what are the classes that I use for this?</p>
  
  <p>Thanks!</p>