Scheduling Local Notifications

For local notifications, no additional setup is required for the app. In ShoutOut, you will use a local notification to be able to schedule a reminder. In ICFMainViewController, there is a method that gets called when the user hits the Set Reminder button:

- (IBAction)setReminder:(id)sender{    NSDate *now = [NSDate date];    UILocalNotification *reminderNotification = [[UILocalNotification alloc] init];    [reminderNotification setFireDate:[now dateByAddingTimeInterval:60]];    [reminderNotification setTimeZone:[NSTimeZone defaultTimeZone]];    [reminderNotification setAlertBody:@"Don't forget to Shout Out!"];    [reminderNotification setAlertAction:@"Shout Now"];    [reminderNotification ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.