且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

控制台错误:UICollectionView 必须使用非零布局参数初始化

更新时间:2022-04-13 00:22:25

注册uicollectionviewcell视图类时出错.要解决,请将以下行放入您的代码中:

it is an error while registering the uicollectionviewcell view class. To resolve put the below line in your code:

[self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"myCell"];