views:

223

answers:

1

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)?

+1  A: 

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

Till
the link you attached contains perfect answer. thanks!
Shivan Raptor