iOS – Exemplo de notificação local simples

UILocalNotification *notification = [[UILocalNotification alloc] init];
if (notification) {
notification
.fireDate = [NSDate date];
notification
.timeZone = [NSTimeZone defaultTimeZone];
notification
.repeatInterval = 0;
notification
.soundName = UILocalNotificationDefaultSoundName;
notification
.alertBody = @"Notification Message";
notification
.applicationIconBadgeNumber = [UIApplication sharedApplication].applicationIconBadgeNumber + 1;
notification
.userInfo = @{@"data" : @1};

[[UIApplication sharedApplication] presentLocalNotificationNow:notification];
}