代码改变世界

比较Date时间先后

2015-11-06 10:05  Y了个J  阅读(380)  评论(0编辑  收藏  举报

if ([firstDetailSelect compare:secondDetailSelect] == NSOrderedDescending)

    {

        [MBProgressHUD showError:@"开始时间不能大于结束时间" toView:self];

        return;

    }