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?
Code by request:
browseController = [[BrowseController alloc] initWithNibName:@"BrowseController" bundle:nil];
[[browseController view] setFrame:CGRectMake(0, 544, 768, 460)];
[window addSubview:[browseController view]];