title: could not dequeue a view of kind: UICollectionElementKindCell with identifier
body: <p>I have UICollectionView, but it seems that I set up everything right. But I get the error:</p>
  
  <pre><code>'could not dequeue a view of kind: UICollectionElementKindCell with identifier PeopleCellForList  - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
  </code></pre>
  
  <p>My storybord:</p>
  
  <p><img src="https://i.stack.imgur.com/gJnLu.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/uZLeo.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/LXHSg.png" alt="enter image description here"></p>
  
  <p>My code is:</p>
  
  <pre><code>@interface PeopleCellForList : UICollectionViewCell
  
  @end
  
  @implementation PeopleCellForList
  
  @end
  
  
  #pragma mark - UICollectionView Datasource
  
  - (NSInteger)collectionView:(UICollectionView *)view numberOfItemsInSection:(NSInteger)section {
      return self.arrayPeople.count;
  }
  
  - (NSInteger)numberOfSectionsInCollectionView: (UICollectionView *)collectionView {
      return 1;
  }
  
  - (UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath:(NSIndexPath *)indexPath {
      UICollectionViewCell *cell = [cv dequeueReusableCellWithReuseIdentifier:@"PeopleCellForList " forIndexPath:indexPath];
      return cell;
  }
  
  #pragma mark - UICollectionViewDelegate
  - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
  {
  
  }
  - (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath {
  
  }
  
  #pragma mark – UICollectionViewDelegateFlowLayout
  
  - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
  
      CGFloat width = 106;
      CGFloat height = width;
      if (indexPath.row % 3 == 2) {
          width = 108;
      }
      return CGSizeMake(width, height);
  }
  
  - (UIEdgeInsets)collectionView:
  (UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
      return UIEdgeInsetsMake(0, 0, 0, 0);
  }
  </code></pre>
  
  <p>I tried <code>[self.collectionViewMain registerClass:[PeopleCellForList class] forCellWithReuseIdentifier:@"PeopleCellForList"]</code> in <code>viewDidLoad:</code> (during that I tried to remove and not remove cell from storyboard), but that didn't help.</p>