[iPhone] Resize UIDatePicker

Posted on January 24, 2011

출처 : http://stackoverflow.com/questions/2431391/how-to-change-the-size-of-date-picker-in-iphone-app
If you create UIPickerView in your code then you can use -initWithFrame to set its frame explicitly (see this question) - in the answer provided there stated that some "visual glitches" may appear with this approach.
As a second option you can adjust picker's frame by applying appropriate CGAffineTransform to it ( I have not tested it much but it seems to work fine):
picker.transform = CGAffineTransformMake(0.5, 0, 0, 0.5, -80, 0);
This (somewhat dummy) code scales UIPickerView to a half size and applies translation to place the picker to the left side of the screen. You can play with different transform values to get the effect you want.
Edit: The code above works for UIDatePickerView as well (sorry was not attentive to a question). But as other stated Apple had not made picker's frame (easily) customizable so it may mean that you should consider changing your design to try to use the picker in its proper size to conform to Apple's HIG.