i am developing alarm application. And i want to set the functionality of snooze alarm for specific time. As the iPhone's system alarm functionality that is "when we switch off the phone after setting the alarm".And it works like (tap to snooze or press any button to snooze) And slide to unlock the phone.
i want set tap to snooze instead of slide to snooze Functionality.
Source Code:
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = date;
NSLog(@"Notification will be shown on: %@",localNotification.fireDate);
localNotification.alertBody = @"Time to wake up";
localNotification.alertAction = @"Snooze";
localNotification.soundName = UILocalNotificationDefaultSoundName;
localNotification.applicationIconBadgeNumber = -1;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];