UIView added with incorrect orientation
Posted
by mx12
on Stack Overflow
See other posts from Stack Overflow
or by mx12
Published on 2010-04-16T21:00:44Z
Indexed on
2010/04/16
21:03 UTC
Read the original article
Hit count: 249
So I have been working on a problem with UIView on the iPad. Essentially I have a splitview as the root view and I want to overlay my custom image view over top of the splitview (This is because the splitview must be the root view). The problem that I have, is when I call addSubview on my splitview the subview gets displayed in its default orientation, with no regard to the iPad's current orientation. Any suggestions on what I am doing wrong or flag I am not setting?
Thanks!
Code that I am using to add the view:
[splitViewController.view addSubview: myImageController.view];
Example screenshots: http://www.engineering.uiowa.edu/~krtaylor/so/
© Stack Overflow or respective owner