title: How to remove bottom border line with transparent background in my UICollectionView cell?
body: <p><a href="https://i.stack.imgur.com/d8h2K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d8h2K.png" alt="enter image description here"></a></p>
  
  <p>I tried to remove CollectionView Cell bottom border but no luck.
  As attached is my sample code:-</p>
  
  <pre><code>- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
      UICollectionViewCell *gridcell = nil;
  
      MenuDetail_Cell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:MenuDetail_CellID forIndexPath:indexPath];
  
      cell.layoutMargins = UIEdgeInsetsZero;
      cell.layer.borderWidth = 0;
      cell.clipsToBounds = YES;
      cell.contentView.layer.borderWidth = 0.0;
      cell.contentView.layer.borderColor = [UIColor clearColor].CGColor;
      cell.contentView.layer.masksToBounds = NO;
  
      cell.strMenuImage = self.imageArray[indexPath.row];
      cell.strMenuTitle = self.titleArray[indexPath.row];
      gridcell = cell;
      return gridcell;
  }
  
  
  - (UICollectionView *)collectionView
  {
      if (!_collectionView) {
  
          UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc]init];
  
          _collectionView = [[UICollectionView alloc]initWithFrame:CGRectZero collectionViewLayout:layout];
          _collectionView.delegate = self;
          _collectionView.dataSource = self;
          _collectionView.delaysContentTouches = NO;
  
  
              _collectionView.frame = CGRectMake(0, DCTopNavH, ScreenW, ScreenH  - DCBottomTabH);
  
          _collectionView.showsVerticalScrollIndicator = NO;
  
          //Cell
          [_collectionView registerClass:[MenuDetail_Cell class] forCellWithReuseIdentifier:MenuDetail_CellID];
  
  
          [self.view addSubview:_collectionView];
      }
      return _collectionView;
  }
  </code></pre>
  
  <p>Even I tried to apply <code>minimumLineSpacingForSectionAtIndex</code> but still the same.
  Any idea? Sorry for my stupid mistake if any. Thank you.</p>