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,354
  • 2
  • 34
  • 52
rkb
  • 10,933
  • 22
  • 76
  • 103

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
  • 170,088
  • 45
  • 397
  • 571