Comparaison d'un NSDate à [date NSDate]

Je suis en train d'essayer de forcer l'utilisateur à sélectionner une date dans le futur avec un sélecteur de date. J'ai bien évidemment utilisé les comparer: méthode, cependant, quand je fais le code suivant, même si c'est la même date que [NSDate date], il raconte l'exécute l'instruction if. Voici mon code:

    if ([datePicker.date compare:[NSDate date]] == NSOrderedAscending) //If the picked date is earlier than today
{
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hmm, this date is earlier than today" 
                                                    message:@"The date you've selected is earlier than today's date, please pick another" 
                                                   delegate:nil  
                                          cancelButtonTitle:@"Okay, I'll pick another" 
                                          otherButtonTitles:nil];
    //Show the alert
    [alert show];

    //Release the alert
    [alert release];
}

source d'informationauteur skylerl