NSComparisonResult result = [localeDate compare:csDate];
if (result == NSOrderedDescending) {
//在指定时间前面 过了指定时间 过期
NSLog(@"历史回放");
}
else if (result == NSOrderedAscending){
//没过指定时间 没过期
NSLog(@"立即播放");
}
NSComparisonResult result = [localeDate compare:csDate];
if (result == NSOrderedDescending) {
//在指定时间前面 过了指定时间 过期
NSLog(@"历史回放");
}
else if (result == NSOrderedAscending){
//没过指定时间 没过期
NSLog(@"立即播放");
}