5

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

mmc
  • 17,274
  • 2
  • 33
  • 52
rkb
  • 10,483
  • 22
  • 71
  • 101

1 Answers1

6

This is a commonly asked question here:

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.

Community
  • 1
  • 1
Brad Larson
  • 169,393
  • 45
  • 393
  • 567