Is it necessary that i have to write the following method to call it in the if....part.
-(NSComparisonResult) compare:(NSDate *)expDate{}
if yes, then how and where i have to write this method so that the following code will work fine?
if (licenseDictionary == nil)
return @"Not Registered";
else if([today compare:expDate] == NSOrderedAscending)
{
[gotoButton setEnabled:YES];
return [licenseDictionary objectForKey:@"Name"];
}
else
return @"License Expired";