2010-09-05 7 views
1

Je reçois deux alertes pour la notification ci-dessous, et je ne peux pas pour la vie de moi comprendre pourquoi. Le code ne semble être appelé qu'une seule fois, mais App: didReceiveLocalNotification est appelé deux fois. Et je ne peux pas comprendre pourquoi!Pourquoi est-ce que je reçois deux alertes pour la notification locale programmée?

NSLog(@"Configuring notifications time is up."); 
    noTimeLeft=[[UILocalNotification alloc]init]; 
    noTimeLeft.fireDate=meterEndTime; 
    [email protected]"Your parking meter has expired!"; 
    [email protected]"Go to meter"; 
    noTimeLeft.userInfo=[NSDictionary dictionaryWithObject:self.meterEndTime forKey:@"NSDate"]; 
    [[UIApplication sharedApplication] scheduleLocalNotification:noTimeLeft]; 
    NSLog(@"Configuring notifications finished time is up."); 

Répondre

Questions connexes