title: UIDatePicker hours interval (NSCalendarUnit?)
body: <p>I'm trying to make a UIDatePicker which allows the selection of hours only between 6.00 and 17.00. The other hours shall be inactive but still visible.
  I think it can be done with setting up the picker calendar and then use this:</p>
  <pre><code>- (NSRange)maximumRangeOfUnit:(NSCalendarUnit)unit
  </code></pre>
  <p>but I'm not sure how.</p>
  <p>Maybe someone can help me.</p>
  <p>Thank you!</p>