views:

787

answers:

2

Hi,

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

A: 

Try resizing it programatically by setting its frame...this might work

Daniel
I tried it but setting frame doesnt work.
rkb
ok, you just want the pickers heigh to be less right? I have an app that somehow i managed to shrink the picker, source isnt infront of me, but when i get home ill look
Daniel
i dont think youll be able to shring the width though
Daniel
+1  A: 

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.

Brad Larson