Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSLog(@"Called Notification");
- NSUserNotification *notification = [[NSUserNotification alloc] init];
- [notification setTitle:@"Hello World"];
- [notification setInformativeText:@"Hello world message"];
- [notification setDeliveryDate:
- [NSDate dateWithTimeInterval:20
- sinceDate:[NSDate date]]];
- [notification setSoundName:NSUserNotificationDefaultSoundName];
- NSUserNotificationCenter *center =
- [NSUserNotificationCenter defaultUserNotificationCenter];
- [center scheduleNotification:notification];
- NSLog(@"Finished");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement