草庐IT

AppointmentCollectionViewCell

全部标签

ios - 无法将需要作为 UICollectionView 单元格的 View 出队

我有一个带有自定义类的UICollectionView,它是UICollectionViewCell的子类。我不断收到以下错误:reason:'couldnotdequeueaviewofkind:UICollectionElementKindCellwithidentifierAppointment-mustregisteraniboraclassfortheidentifierorconnectaprototypecellinastoryboard'但是我做了以下事情:向collectionView注册自定义类。self.collectionView.registerClass(A