views:

15

answers:

0

Hi, I have some landscape UITextFields that appear to trigger a portrait keyboard. Some details:

1) I have a view controller that only allows UIInterfaceOrientationLandscapeRight in the shouldAutorotateToInterfaceOrientation call. This controller's view is set as such:

mViewController.view = mRootRotatedView;
[ [ [ UIApplication sharedApplication ] keyWindow ] addSubview:mRootRotatedView ];  

2) This seems to work, as I have a UITextField that is added under the hierarchy of the root rotated view which always pulls up a landscape keyboard.

3) The UITextFields that do not work are first added to a UIView, then the containing UIView is added to the root rotated view. Is there any chance that the addition of the UITextFields to the container before it is attached to the root rotated view is causing its confusion?

I'm not certain if there's something fundamental to the keyboard orientation that's escaping me. If someone can explain if my approach looks correct or explain how things are supposed to work with the controller's autorotation and attached view hierarchy etc, I'd really appreciate it. I have a feeling I must simply be missing some basic detail pertaining to making these objects create the proper keyboard rotation.