开发者

iPhone UIDatePicker in Landscape mode?

iPhone UI Componenet UIDatePicker d开发者_运维技巧oes not support Landscape mode? it scratches 2/3 of the width in Landscape mode only.

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜