You cannot change the view Local Notificationwhen it starts and when your application is in the background, until iOS 7. Maybe in iOS 8, you can do it.
Also, if you want to use UIAlertViewNotifications to display, you can only show it when the application is in the foreground.
You must use this function in the file AppDelegate.mto be notified when the application is in the foreground.
-(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
source
share