在经过xib建立collectionView的cell的时候常常会出现这样的错误:
invalid nib registered for identifier (xxx) - nib must contain exactly one top level object which must be a UICollectionReusableView instance
解决方案:
找到控制台reason后面的identifier括号中的xxx对应的xib文件,删除和cell同级的其他控件,以下图的Label控件ide