title: How to instantiate custom class UICollectionViewCell outside CollectionView delegate methods?
body: <p>I have trouble instantiating custom class UICollectionViewCell in my custom method. I already have desired NSIndexPath that i need, i only need to instantiate that one cell so i can put some progress view in it...</p>
  
  <p>Here is my example code:</p>
  
  <pre><code>-(void)setupProgressAtIndexPath:(NSIndexPath *)indexPath {
  
      StoreViewCell *cell = [self.collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
  
      if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
      _progressBackground = [[UIView alloc] initWithFrame:CGRectMake(cell.frame.size.width/6,cell.frame.size.height/6,80,80)];
      else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
          _progressBackground = [[UIView alloc] initWithFrame:CGRectMake(cell.frame.size.width/4,cell.frame.size.height/4,80,80)];
  
      _progressBackground.alpha = 0.95;
      _progressBackground.backgroundColor=[UIColor whiteColor];
      _progressBackground.layer.cornerRadius = 20.0f;
      _progressBackground.hidden=NO;
  
      _progressView = [[M13ProgressViewPie alloc] init];
      _progressView.backgroundRingWidth=2.0;
      _progressView.frame = CGRectMake(0,0,64,64);
      _progressView.clipsToBounds=YES;
      _progressView.center = CGPointMake(40,40);
      _progressView.primaryColor=[UIColor orangeColor];
      _progressView.secondaryColor=[UIColor orangeColor];
  
      [_progressBackground setHidden:YES];
  
      [_progressBackground addSubview:_progressView];
      [cell.magazineImage addSubview:_progressBackground];
  
  }
  </code></pre>
  
  <p>Ok i call this in delegate method -collectionView: didSelectItemAtIndexPath:</p>
  
  <p>There is only one problem, when i tap on some cell, it puts progress view there but cell loses it's data and becomes nil. Other that that all works fine. I think the only problem is this line of code: </p>
  
  <pre><code>StoreViewCell *cell = [self.collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
  </code></pre>
  
  <p>Is there any other resolution to my problem, is there any other way to instantiate cell without losing data, i need some answers! :)</p>