Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Andrey Okhotin
3,186 PointsCollectionView FlowLayout while rotation. Outside the screen?
I add a collection view with story board to default ViewController scene. I add a navigation bar with default storyboard settings. Then i display some simple cells in collection view in code.
Lets say, that in portrait i have height of collectionView: 2000, and in landscape: 3000
Then if i do this:
- scroll to bottom in portrait
- rotate to landscape
collections view disappear from screen. It somewhere at the top of window, outside it.
BUT!!!
if i do the same WITHOUT navigation bar - all works fine, collection view is visible.
Why is that? Its a bug of iOS 7 and higher?
You can look at this demo project: http://www.filedropper.com/kira
Scroll to bottom in portrait, then rotait to landscape and you'll see that bug
or this source too:
Andrey Okhotin
3,186 PointsHi, you can look at this demo project: http://www.megafileupload.com/4Yzs/Toys.zip
Scroll to bottom in portrait, then rotait to landscape and you'll see that bug
Matthew Strickland
486 PointsMatthew Strickland
486 PointsAndrey Okhotin, what kind of auto layout constraints do you have setup for the UICollectionView in question?