How to get local notification when app is running in Objective-C
问题 I am new in iOS and I am facing problem regarding to show local notification when app is running. My code is like this UILocalNotification* localNotification = [[UILocalNotification alloc] init]; localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:0]; //Enter the time here in seconds. localNotification.alertBody = @"Message hear"; localNotification.timeZone = [NSTimeZone defaultTimeZone]; localNotification.repeatInterval = NSCalendarUnitMinute; //Repeating instructions here.