LvJianfeng / LLCycleScrollView

Swift - 轮播图,文本轮播,支持左右箭头
MIT License
373 stars 65 forks source link

后台一直会输出这个警告:The relevant UICollectionViewFlowLayout instance is #16

Closed youngliuxx closed 7 years ago

youngliuxx commented 7 years ago
2017-10-09 14:07:57.204040+0800[10448:1222328] The relevant UICollectionViewFlowLayout instance is <UICollectionViewFlowLayout: 0x7fec1d71c860>, and it is attached to <UICollectionView: 0x7fec1f09ac00; frame = (0 0; 414 165.667); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x60400024bdf0>; layer = <CALayer: 0x60400023aba0>; contentOffset: {414, 0}; contentSize: {207000, 165.66666666666663}; adjustedContentInset: {1.4210854715202004e-14, 0, 0, 0}> collection view layout: <UICollectionViewFlowLayout: 0x7fec1d71c860>.
2017-10-09 14:07:57.204131+0800[10448:1222328] Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.
2017-10-09 14:08:03.358997+0800[10448:1222328] The behavior of the UICollectionViewFlowLayout is not defined because:
2017-10-09 14:08:03.359166+0800[10448:1222328] 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.
youngliuxx commented 7 years ago

我在SB中把LLCycleScrollView的view高度设置为等比例高度后出现的这个提示,把Aspect Ratio属性去掉,写成死高度,就不会出现这提示了。

LvJianfeng commented 7 years ago

嗯,是需要给它高度的