Ios UIApplicationLaunchActionSlocalNotificationKey在我单击通知警报而不是普通徽章应用程序图标时被激发?

Ios UIApplicationLaunchActionSlocalNotificationKey在我单击通知警报而不是普通徽章应用程序图标时被激发?,ios,Ios,当我仅单击状态栏上的通知警报而不单击普通徽章应用程序图标时,会触发通知 -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for

当我仅单击状态栏上的通知警报而不单击普通徽章应用程序图标时,会触发通知

-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:   (NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
    self.viewController = [[ViewController alloc]initWithNibName:@"ViewController_iPhone" bundle:nil];
 } else {
    self.viewController = [[ViewController alloc] initWithNibName:@"ViewController_iPad" bundle:nil];
}

[[UIApplication sharedApplication]setStatusBarHidden:YES];


UILocalNotification *localNotif =
[launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
if (localNotif)
{
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"options" message:[launchOptions[UIApplicationLaunchOptionsLocalNotificationKey] description] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];

}

self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
当应用程序处于后台时,当我只单击alert而不单击AppNormal徽章图标时,此委托方法也会调用

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
{

}
我不处理本地通知,有人能帮我解决这个问题吗?

可能重复的可能重复: