title: Subclassing UICollectionViewCell leads to never being selected
body: <p>I've tried subclassing a UICollectionViewCell and loading from a nib file:</p>
  
  <pre><code>- (id)initWithFrame:(CGRect)frame {
      self = [super initWithFrame:frame];
      if (self) {
          NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"DatasetCell" owner:self options:nil];
  
          if ([arrayOfViews count] &lt; 1) {
              return nil;
          }
  
          if (![[arrayOfViews objectAtIndex:0] isKindOfClass:[UICollectionViewCell class]]) {
              return nil;
          }
  
          self = [arrayOfViews objectAtIndex:0];
  
          UIView *view = [UIView new];
          view.frame = self.frame;
          view.backgroundColor = [UIColor orangeColor];
          self.selectedBackgroundView = view;
      }
  
      return self;
  }
  </code></pre>
  
  <p>I'm running into an issue where a cell is selected, the <code>cell.selected</code> is not being set. It is always <code>NO</code> which is leading to an issue of deselecting the cells.</p>
  
  <p>How do I handle getting the cell to the selected state?</p>
  
  <p>EDIT:</p>
  
  <p>I originally loading the custom UICollectionViewCell as a class:</p>
  
  <pre><code>[collectionView registerClass:[DatasetCell class] forCellWithReuseIdentifier:@"dataCell"];
  </code></pre>
  
  <p>Switched to loading the nib:</p>
  
  <pre><code>[collectionView registerNib:[UINib nibWithNibName:@"DatasetCell" bundle:nil] forCellWithReuseIdentifier:@"nibCell"];
  </code></pre>
  
  <p>I have the same select/deselect issue both ways.</p>