2

iPhone UI Componenet UIDatePicker does not support Landscape mode? it scratches 2/3 of the width in Landscape mode only.

How to make it use up full width (480px)?

Raptor
  • 53,206
  • 45
  • 230
  • 366

1 Answers1

2

Try to manually re/set the UIDatePickers' subviews bounds like this:

- (void) viewDidLoad {
    [super viewDidLoad];
    for (UIView * subview in datePicker.subviews) {
        subview.frame = datePicker.bounds;
    }
}

Everything is nicely described in this article: Using UIDatePicker in landscape mode

nhahtdh
  • 55,989
  • 15
  • 126
  • 162
Till
  • 27,559
  • 13
  • 88
  • 122
  • 3
    The link is now dead. Is there any chance of someone recovering the information it contained and posting it here? Thanks. – Trebor Jul 12 '13 at 11:49