I'm practicing to develop Alarm app like Alarm on IOS 7. Alarm time up on IOS7 However, I stuck at local notification at locked screen, it just like this. My notification Some code I did:
In my AppDelegate.m
My code
[[UIApplication sharedApplication] registerUserNotificationSettings:mySettings];
// Handle launching from a notification
UILocalNotification *locationNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
....
..in my ViewController.m..
[self scheduleLocalNotificationWithDate:correctDate];
....
(void)scheduleLocalNotificationWithDate:(NSDate *)fireDate {
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = fireDate;
localNotification.alertBody = [NSString stringWithFormat:@"Alert Fired at %@", fireDate];
localNotification.soundName = UILocalNotificationDefaultSoundName;
localNotification.applicationIconBadgeNumber = numberReminder;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
}
Who can help to do that?
Thanks