zepojo / UPCarouselFlowLayout

A fancy carousel flow layout for UICollectionView on iOS.
MIT License
1.66k stars 236 forks source link

Navigation Controller #31

Open axmav opened 6 years ago

axmav commented 6 years ago

Hello! If you embed ViewController in NavigationViewController in Example you get following errors on iPhone 5S 10.2:

2018-01-17 21:52:56.026 UPCarouselFlowLayoutDemo[63712:5963793] The behavior of the UICollectionViewFlowLayout is not defined because:
2018-01-17 21:52:56.026 UPCarouselFlowLayoutDemo[63712:5963793] the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.
2018-01-17 21:52:56.026 UPCarouselFlowLayoutDemo[63712:5963793] The relevant UICollectionViewFlowLayout instance is <UPCarouselFlowLayoutDemo.UPCarouselFlowLayout: 0x7fb1a5609850>, and it is attached to <UICollectionView: 0x7fb1a680e000; frame = (0 64; 320 277); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x61000004bfd0>; layer = <CALayer: 0x610000037ac0>; contentOffset: {0, -64}; contentSize: {0, 336}> collection view layout: <UPCarouselFlowLayoutDemo.UPCarouselFlowLayout: 0x7fb1a5609850>.
2018-01-17 21:52:56.027 UPCarouselFlowLayoutDemo[63712:5963793] Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.
DrankoLQ commented 6 years ago

By "Example" do you mean the test app included in the project? I've run it and those logs doesn't appear. Can you check you haven't changed the auto-layout constraints? It looks like the cell size is bigger than the UICollectionView size.