Reason: 'Could not load NIB in bundle: "XXXXXXX" with name 'xxcell ', nibxxcell
Error message: reason: 'Could not load NIB in bundle: 'nsundle </Users/caitong/Library/Developer/CoreSimulator/Devices/5EC57F6E-CC41-4FD6-80D7-443B52B9D181/data/Containers/Bundle/Application/BB8E1CAE-441F-46FF-802A-EFC05088D841/ColleceService. app> (loaded) 'with name 'collectviewcell''
Find the cause: An error occurred while registering the UICollectionView;
As follows:
[Self. collectionView registerNib: [UINib nibWithNibName: @ "schoolViewCell" bundle: nil] forCellWithReuseIdentifier: identifer];
The correct name should be the cell class name. The class name is wrong.
Remember: some classes have long names. Do not use your hands to copy them as much as possible. Do not be so confident that they can work together. Mistakes may occur if you write less or write more. This is a bloody lesson.