title: Why won't UIPickerView resize the first time I change device orientation on its parent viewController?
body: <p>I have a navigation-based app and say my root controller A causes a viewController B to be pushed, which has a UITableView with a few cells with UITextFields.</p>
  
  <p>The first 2 UITextFields have each, as their inputView, a UIDatePicker and a UIPickerView, respectively. Also, the UIPickerView has 4 components whose UIViews are returned through</p>
  
  <pre><code>- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
  {
      UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 60, 37)];
      label.text = [NSString stringWithFormat:@"%@%i", ((component == 3) ? @"." : @""), row];
      label.textAlignment = UITextAlignmentCenter;
      label.font = [UIFont boldSystemFontOfSize:24];
      label.backgroundColor = [UIColor clearColor];
      [label autorelease];
  
      return label;
  }
  </code></pre>
  
  <p>In vertical orientation, the UIPickerView looks like this:
  <img src="https://i.stack.imgur.com/Ji04w.png" alt="enter image description here"></p>
  
  <p><strong>What I've noticed is the following:</strong></p>
  
  <p><strong>CASE 1 - CORRECT</strong></p>
  
  <ol>
  <li>I'm in viewController A in vertical orientation. </li>
  <li>I rotate the device / simulator from a vertical orientation to horizontal orientation</li>
  <li>I push viewController B </li>
  <li>I cause the UIPickerView to pop up</li>
  </ol>
  
  <p>The picker frame is correctly stretched to landscape mode and the component views are still the correct size and centered:</p>
  
  <p><img src="https://i.stack.imgur.com/6yS9l.png" alt="enter image description here"></p>
  
  <p><strong>BUT</strong></p>
  
  <p><strong>CASE 2 - INCORRECT</strong></p>
  
  <ol>
  <li>I'm in viewController A in vertical orientation. </li>
  <li>I push viewController B </li>
  <li>I rotate the device / simulator from a vertical orientation to horizontal orientation   </li>
  <li>I cause the UIPickerView to pop up</li>
  </ol>
  
  <p>In this case, the UIPickerView's components get messed up: </p>
  
  <p><img src="https://i.stack.imgur.com/OYklb.png" alt="enter image description here"></p>
  
  <p>Any thoughts?</p>