title: How do I animate gif inside CollectionViewController.. (Objective-C)
body: <pre><code>-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
                cellForItemAtIndexPath:(NSIndexPath *)indexPath
  
  {
  
      [_keyboard.collectionView registerClass:[NibCell class] forCellWithReuseIdentifier:@"Cell"];
  
  
      static NSString *identifier = @"Cell";
  
      NibCell *cell = [self.keyboard.collectionView dequeueReusableCellWithReuseIdentifier:identifier forIndexPath:indexPath];
  
      UIImageView * rampageGifImage = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, cell.frame.size.width, cell.frame.size.height)];
  
  
      [rampageGifImage setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@.gif",[rampageGif objectAtIndex:indexPath.row]]]];
  
  
      [cell.layer setCornerRadius:4];
  
      [cell addSubview:rampageGifImage];
  
      return cell;
  }
  </code></pre>