Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can We resize the UIDatePicker View in iPhone

I want a UIDatePicker View in a smaller size with respect to what it comes with. Is it possible to resize it?

like image 406
rkb Avatar asked Jul 23 '09 18:07

rkb


1 Answers

This is a commonly asked question here:

  • How to change UIPickerView height
  • UIPicker sizing in landscape mode
  • how to shrink picker view in iphone?

It's not a control that likes to be resized, but you can play some tricks with its frame or with the frame of a UIView you've placed it in. As I describe here, the cleanest way I've found to resize this control is by placing it within a hosting UIView, then applying an affine transform to scale that hosting view down.

like image 123
Brad Larson Avatar answered Sep 27 '22 15:09

Brad Larson