title: How to set a UILabel in UICollectionViewCell
body: <p>I have an app with a UIViewController with a UICollectionView IBOutlet in it.</p>
  
  <p><img src="https://i.stack.imgur.com/rHP0L.png" alt="MyCustomCell Outlet connected">
  <img src="https://i.stack.imgur.com/2jUeN.png" alt="MyCustomCell ReuseID">
  <img src="https://i.stack.imgur.com/lEeLj.png" alt="MyCustomCell Class Identity"></p>
  
  <p>The cell in the UICollectionView is MyCustomCell and has this method setting its UILabel:</p>
  
  <pre><code>-(void)setCellLabel:(NSString *)value{
      NSLog(@"settinglabel");
      cellLabel.text = @"hardcode"; //added for testing purposes
  }
  </code></pre>
  
  <p>The cell has the property Class type identifying it as MyCustomCell in storyboard and its dequeue identifier as well.  The UIViewController adopts the datasource and delegate protocols.  The IBOutlet UILabel has its cellLabel outlet connected to the storyboard.  The methods are defined as:</p>
  
  <pre><code>- (void)viewDidLoad{
      [super viewDidLoad];
      self.restNames = @[@"Orange",@"Naranja",@"Narnia"];
  
      [self.collectionView registerClass:[MyCustomCell class] forCellWithReuseIdentifier:@"MyCustomCellID"];
  
  }
  - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
      NSLog(@"%d",[self.restNames count]);
      return [self.restNames count];
  }
  
  - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
  
      MyCustomCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:CellIdentifier forIndexPath:indexPath];
  
  
      [cell setCellLabel:@"hi"];
      NSLog(@"fitsname %@",[self.restNames objectAtIndex:indexPath.row]);
  
  
      return cell;
  }
  </code></pre>
  
  <p>I get three cells drawn in my tableview, corresponding to the 3 objects in my array.  The array simply contains string objects which I was setting directly by objectAtIndexPath but I decided to set it directly to @"hi" since it wasn't working.  I even changed the value used in setCellLabel method to a hardcoded value and I keep get just the "Label" default string in each cell.</p>
  
  <p>Why isnt the cellLabel being set properly?</p>