美文网首页
使用UICollectionView时的坑无标题文章

使用UICollectionView时的坑无标题文章

作者: 深巷有只电音喵 | 来源:发表于2017-03-28 09:48 被阅读0次

报错代码:

Assertion

failure in -[UICollectionViewData validateLayoutInRect:],

/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.29.5/UICollectionViewData.m:399

如果在一个VC中使用了两个UICollectionView, 在使用reloadData更新视图时如果数据源个数多于更新之前的个数,就有可能出现Assertion failure解决办法就是:千万不要使用同一个flowLayout!!!

相关文章

  • 使用UICollectionView时的坑无标题文章

    报错代码: Assertion failure in -[UICollectionViewData validat...

  • 无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章 无标题文章无标题文章无标题文章无...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • fasfsdfdf

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章

网友评论

      本文标题:使用UICollectionView时的坑无标题文章

      本文链接:https://www.haomeiwen.com/subject/ocvqettx.html