Monday, May 30, 2011

Objective C date comparision

if (licenseDictionary == nil){
     return @"Not Registered"; 
}else if([today compare:expDate] == NSOrderedAscending) {
     [gotoButton setEnabled:YES]; return [licenseDictionary objectForKey:@"Name"]; 
} else{
     return @"License Expired";
}

No comments:

Post a Comment