use the timeIntervalSince1970 function of the NSDate class like below:
double start = [startDate timeIntervalSince1970];double end = [endDate timeIntervalSince1970];double difference = end - start;
basically, this is what i use to compare the difference in seconds between 2 different dates. also check this link here