Closed ehlersd closed 10 years ago
It seems to be working in the example project. Did you try adding the collection view to the example project to see if it's still working?
The example seems to work fine, but I'm not sure if the problem is in my Storyboard, or has something to do with the iPad vs iPhone. Basically, when rotating my app on the iPad, the RootViewController background is showing thru.
I'm pretty sure that the problem is in your storyboard. I've converted the example project to Universal target and it still works fine.
Any thoughts or ideas on where in the storyboard to look? I've spent a couple of hours digging thru this and cannot find anything that makes a difference.
No idea, I never use storyboards...
Well, I created a new example, stripped down with just the bare necessities, and it doesn't appear to work correctly.
Here's a repo with my test.
https://github.com/ehlersd/REFrostedViewControllerRotationTest
Hope this helps.
You're doing something that doesn't make sense at all (manually adding a UINavigationBar
to a view controller). You need to check UINavigationController
programming guides. Please take another look at my example project and pay close attention at classes that I'm using and how it's structured.
I added an iPad storyboard to my example project, I think it should be a good starting point for you.
Well, the NavBar was only added to help me mockup some stuff. I removed it and replaced it with a simple UIView. Same problem....the "contentController" doesn't resize.
I'm my test project, I followed your description and instructions to a "T".
Stuck with the same problem.
The container rotates but the child view controllers don't resize/layout as per the rotation. I'm sure it's just a small setting somewhere that I seem to have missed but I cannot figure it out for the life of me. Any help will be appreciated. Using storyboards...
PS: The issue exists in your storyboard example too. I just ran it in the simulator and it shows the same issue. Run the example, rotate device left or right. The child view controller doesn't resize.
I have 3 View Controllers in my storyboard....Root, Menu & Content.
Prior to adding this menu, the Content would rotate fine on my iPad (basically just a collection view and a navbar).
After adding this control (and the Root & Menu controllers), the screen rotates fine, but the Content controller does NOT rotate, leaving the navbar title not centered, and the sizing of the collection view doesn't change (to allow more columns on landscape).