letcell=collectionView.dequeueReusableCellWithReuseIdentifier("BigRoomVideoCell",forIndexPath:indexPath)asVideoViewCell上面是重用cell的写法,但是如何每次都实例化一个collectionview的cell?我尝试过letcell=VideoViewCell()直接报***Terminatingappduetouncaughtexception'NSInternalInconsistencyException',reason:'thecellreturnedfrom-collectionView:cellForItemAtIndexPath:doesnothaveareuseIdentifier-cellsmustberetrievedbycalling-dequeueReusableCellWithReuseIdentifier:forIndexPath:google了也没找到合适的答案
慕村225694
POPMUISE
相关分类