title: Setting corner radius on UIDatePicker with a background color
body: <p>I have a <code>UIDatePicker</code> in my view and have set the background color of the <code>UIDatePicker</code>:</p>
  
  <pre><code>self.datePicker.backgroundColor = [UIColor lightTextColor];
  self.datePicker.layer.cornerRadius = 10;
  </code></pre>
  
  <p>This successfully puts a background behind the <code>UIDatePicker</code> (<em>which in iOS7 is essentially transparent</em>) but fails to make the rounded corners for the background that I am looking for (<em>I do this same thing for an image on the screen and it works perfectly</em>).<br>
  It seems that the corner radius doesn't affect the background color.<br>
  Is there a way to fix this problem by setting a corner radius for the background color (or any another solution).</p>
  
  <p>The reason I want to do this is because the ordinary <code>UIDatePicker</code> looks awkward in the view I have constructed and looks much better with a background color.<br>
  However, all the other items in the view have rounded corners and I want the <code>UIDatePicker</code> to match them.  </p>
  
  <p>Thanks.</p>