NSDate *date= [NSDatedate];//当前时间
NSDate *lastDay = [NSDate dateWithTimeInterval:-24*60*60 sinceDate:date];//前一天
NSDate *nextDay = [NSDate dateWithTimeInterval:24*60*60 sinceDate:date];//后一天
datePicker.minimumDate = nextDay;//设置时间控制器的最小时间
NSDate *date= [NSDatedate];//当前时间
NSDate *lastDay = [NSDate dateWithTimeInterval:-24*60*60 sinceDate:date];//前一天
NSDate *nextDay = [NSDate dateWithTimeInterval:24*60*60 sinceDate:date];//后一天
datePicker.minimumDate = nextDay;//设置时间控制器的最小时间