title: how to set the date picker to display the year between 1910-2010 alone
body: <p>I am trying to show the date picker between 1910-2010 alone. i mean the user has to select between 1910 - 2010 only. i tried the below code but it is not working.</p>
  
  <p>Also the date can be selected from 1 to 31st and month also can be selected from jan to dec.</p>
  
  <pre><code>NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
          NSDate *currentDate = [NSDate date];
          NSDateComponents *comps = [[NSDateComponents alloc] init];
          [comps setYear:-3];
          NSDate *maxDate = [calendar dateByAddingComponents:comps toDate:0 options:0];
          [comps setYear:1];
          NSDate *minDate = [calendar dateByAddingComponents:comps toDate:0 options:0];
  
      [self.myPicker setMaximumDate:maxDate];
      [self.myPicker setMinimumDate:minDate];
  </code></pre>
  
  <p>Please let me know, what i am doing wrong.
  Thanks a lot.</p>