Если вы ищете полный код о том, как запланировать уведомление чуть позже (например, 3 секунды), вот полный код:
ПРИМЕЧАНИЕ. Если вы находитесь внутри приложения, в верхней части экрана не будет отображаться окно сообщения, которое, возможно, придется обрабатывать через делегата UIApplication.
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar];
NSDate *currentDate = [[NSDate alloc] init];
NSDateComponents *dateComponents = [[NSDateComponents alloc] init];
[dateComponents setSecond: 3 ];
NSDate *targetDate = [calendar dateByAddingComponents:dateComponents toDate:currentDate options:0];
localNotification.fireDate = targetDate;
localNotification.timeZone = [NSTimeZone defaultTimeZone];
localNotification.alertBody = @"Notified";
localNotification.alertAction = @"Show";
localNotification.soundName = UILocalNotificationDefaultSoundName;
localNotification.applicationIconBadgeNumber = 1;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];