I am calling self.collectionView.registerClass(LeftMenuCollectionViewCell.self, forCellWithReuseIdentifier: "ls")
again. If you are using a storyboard you don’t want to call this. It will overwrite what you have in your storyboard.
If you still have the problem check wether reuseIdentifier
is same in dequeueReusableCellWithReuseIdentifier
and in storyboard
.