We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当我传的默认选中时间为空时,我看你self.selectDate是取的当前时间,我最大时间也是传的当前时间,如下图所示: 两个值比较结果为NSOrderedDescending 这样你下面判断@"默认选择的日期不能大于最大日期!"时就会断到这里
The text was updated successfully, but these errors were encountered:
您好,非常感谢你指出这个问题,这个bug已经修复了。 出现这个bug的原因是,在比较两个时间时没有指定比较级数(即这里应该按 yyyy-MM-dd HH:mm:ss 进行比较) NSDate *date1 = [NSDate date]; NSDate *date2 = [NSDate date]; NSDate *date3 = [NSDate date];
不指定比较级数时,date1 < date2 < date3 指定比较级数(yyyy-MM-dd HH:mm:ss)时,date1 = date2 = date3
Sorry, something went wrong.
No branches or pull requests
当我传的默认选中时间为空时,我看你self.selectDate是取的当前时间,我最大时间也是传的当前时间,如下图所示:
两个值比较结果为NSOrderedDescending
这样你下面判断@"默认选择的日期不能大于最大日期!"时就会断到这里
The text was updated successfully, but these errors were encountered: