title: UILabel In UICollectionViewCell is setting after scrolling?
body: <p>In my code,I was trying to use <code>UIImage</code> &amp; <code>UIabel</code> in <code>UICollectionViewCell</code>.What I was doing If there is no image in <code>UICollectionViewCell</code> i want to shift <code>UILabel</code> upwards.So I used two frames of label and checked for <code>if(UIImageView.image==nil)</code> it is showing effect after scrolling?
  What to do?
  Here is the code what i did-</p>
  
  <pre><code>-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
           cellForItemAtIndexPath:(NSIndexPath *)indexPath
  {
  
  UICollectionViewCell *myCell=(UICollectionViewCell*)[self.view viewWithTag:1];
  myCell = [collectionView
                            dequeueReusableCellWithReuseIdentifier:@"Cell"
                            forIndexPath:indexPath];
  
  UILabel *label=(UILabel*)[myCell viewWithTag:12];
  
  UIImageView *collectionViewImage=(UIImageView*)[myCell viewWithTag:11];
  
  
  
  NSString *collectionViewImageName=[imagesCollectionViewArray objectAtIndex:indexPath.row];
  collectionViewImage.image=[UIImage imageNamed:collectionViewImageName];
  
  
  if (collectionViewImage.image==nil) {
  
  [collectionViewImage setBackgroundColor:[UIColor clearColor]];
  [label setFrame:CGRectMake(35, 73, 309, 54)];
   label.text=[lableColectionviewArray objectAtIndex:indexPath.row];
  return myCell;
  }else {
  
  [label setFrame:CGRectMake(20, 294, 352, 49)];
  label.text=[lableColectionviewArray objectAtIndex:indexPath.row];
  return myCell;
  
   }
  
  }
  </code></pre>