关闭

the behavior of the UICollectionViewFlowLayout is not defined because:

3181人阅读 评论(0) 收藏 举报
分类:

the behavior of the UICollectionViewFlowLayout is not defined because:


 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.


The relevant UICollectionViewFlowLayout instance is <UICollectionViewFlowLayout: 0x7fabf9580f60>, and it is attached to <UICollectionView: 0x7fabf9875800; frame = (0 0; 320 125); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x7fabf9573f70>; layer = <CALayer: 0x7fabf95769d0>; contentOffset: {0, 0}; contentSize: {0, 125}> collection view layout: <UICollectionViewFlowLayout: 0x7fabf9580f60>.


Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.automaticallyAdjustsScrollViewInsets = NO;
}


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1314384次
    • 积分:23728
    • 等级:
    • 排名:第300名
    • 原创:1235篇
    • 转载:156篇
    • 译文:0篇
    • 评论:126条
    最新评论