A digital icon is not the only property of local notification. It can also display banners and play sounds. These banners are subsequently added to the notification center.
Here is an example:
- (void)addNotification { UILocalNotification *localNotification = [[UILocalNotification alloc] init]; localNotification.fireDate = self.datePicker.date; localNotification.alertBody = self.messageField.text; localNotification.soundName = UILocalNotificationDefaultSoundName; localNotification.applicationIconBadgeNumber = 1; NSDictionary *infoDict = [NSDictionary dictionaryWithObjectsAndKeys:@"Object 1", @"Key 1", @"Object 2", @"Key 2", nil]; localNotification.userInfo = infoDict; [[UIApplication sharedApplication] scheduleLocalNotification:localNotification]; [localNotification release]; }
And here is the tutorial: http://www.icodeblog.com/2010/07/29/iphone-programming-tutorial-local-notifications/
source share