iPad/iPod: autoRotate resizes view in window
Posted
by Jasconius
on Stack Overflow
See other posts from Stack Overflow
or by Jasconius
Published on 2010-05-26T18:19:59Z
Indexed on
2010/05/26
18:21 UTC
Read the original article
Hit count: 414
Developing an iPad interface, I have a scenario where I have a UIViewController which manages a view that gets placed directly as a subview of the main UIWindow.
Before being placed in the UIWindow, that view gets resized to a non-standard size, let's say, 768x460, and positioned at the bottom of the screen.
When rotating the device, the autoRotate feature of the UIViewController causes the view to be resized so that it fills the entire UIWindow space.
I thought this might be because in the XIB, the view is set to window size, but when I changed it to reflect the desired size, it still expanded it to the window size.
Then I went into the MainWindow XIB and turned off autoresizeSubviews, and it still happens.
This is a very frustrating problem, I am hoping that there is merely something obvious that I am missing out on.
Anyone have any bright ideas?
© Stack Overflow or respective owner