title: Setting the minimum and maximum date for a UIDatepicker which is put inside a Action sheet
body: <p>I am using this class for displaying the date picker called  <a href="https://github.com/TimCinel/ActionSheetPicker" rel="nofollow">Action sheet picker</a>,
  The problem which I am having is that I am not able to set the max and min date of the picker.</p>
  
  <p>The code which i am using is this:</p>
  
  <p>In tableview didSelectRow method:</p>
  
  <pre><code>  else if (indexPath.row == 2){
          // here I am using a library which successfully shows a date picker from where we can pick the dates on which we want to request the appt.
          _actionSheetPicker = [[ActionSheetDatePicker alloc] initWithTitle:@"" 
        datePickerMode:UIDatePickerModeTime selectedDate:self.selectedDateandTime 
     target:self action:@selector(dateWasSelected:element:) origin:[self.tableView
    cellForRowAtIndexPath:indexPath]];
          [self.actionSheetPicker addCustomButtonWithTitle:[self.selectedDateandTime 
        getDateStringInFormat:@"dd MMM yyyy"] value:Nil];
          UIDatePicker * picker = (UIDatePicker *)[self.actionSheetPicker 
       configuredPickerView];
          [picker setMinimumDate:self.selectedDateandTime];
  
          self.actionSheetPicker.hideCancel = NO;
          [self.actionSheetPicker showActionSheetPicker];
  }
  </code></pre>
  
  <p>the configuredPickerView method is in the library which is as follows:</p>
  
  <pre><code>- (UIView *)configuredPickerView {
  CGRect datePickerFrame = CGRectMake(0, 40, self.viewSize.width, 216);
  UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:datePickerFrame];
  datePicker.datePickerMode = self.datePickerMode;
  [datePicker setDate:self.selectedDate animated:NO];
  
  
  [datePicker addTarget:self action:@selector(eventForDatePicker:) forControlEvents:UIControlEventValueChanged];
  
  //need to keep a reference to the picker so we can clear the DataSource / Delegate when dismissing (not used in this picker, but just in case somebody uses this as a template for another picker)
  self.pickerView = datePicker;
  
  return datePicker;
  </code></pre>
  
  <p>}</p>
  
  <p>Please if somebody can help me out on this matter. if any extra help is required to understand the architecture of the class then please feel free to ask me.</p>