views:

13

answers:

0

I have found something I don't understand with the UIPicker and UIDatePicker views - when I make a view with either of these, centered at the top of the view, I set it horizontally to have all the auto resize options selected (Looks like: H<-->H in interface builder, third tab of the inspector in the red box).

This works as expected when the view is pushed in portrait view, it rotates and remains centered, etc. But consistently when I rotate the parent view to landscape, then push the new view controller (containing the picker) in landscape mode immediately, I end up with the picker being much longer than the view itself, so that the center of it is about 3/4 of the way to the right.

I'd even go so far as to call this a bug, I just can't find what in my programming would cause the weird behaviour. Any ideas / advice / help are appreciated.