title: Custom UITableViewCell initWithStyle called multiple times
body: <p>For some reason my custom cell is being initialized multiple times when using tableView cellForRowAtIndexPath method. In my custom cell I have a custom view to play AvItem with an AVPlayer. My tableView cellForRowAtIndexPath method looks like this</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  
  
     MyCustomCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
  
  
  
      if (cell==nil) {
  
          [tableView registerClass:[MyCustomCell class] forCellReuseIdentifier:@"cell"];
          cell = [[MyCustomCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
          cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
      }
  
     MyCoreDataVideos *videos = [self.fetchedResultsController objectAtIndexPath:indexPath];
     NSURL * videoLocalURL = [[MyModel sharedInstance]localVideoDestinationFromVideoPath:videos.videoPath];
     AVPlayerItem *item = [AVPlayerItem playerItemWithURL:videoLocalURL];
  
       [cell.videoView.player setItem:item];
       [cell.videoView.player play];
  
  
  return cell;
  
  
  }  
  </code></pre>
  
  <p>And my custom cell's initWithStyle method looks like the following</p>
  
  <pre><code>- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
  {
      self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
      if (self) {
  
          NSLog(@"I'm being called a lot of times ");
  
          _videoView = [[MyVideoPlayerView alloc]init];
          _videoView.frame = self.contentView.bounds;
          [self.videoView.player setShouldLoop:YES];
          [self.videoView setTapActionsEnabled:YES];
          self.contentView.clipsToBounds = YES;
  
          [self.contentView addSubview:_videoView];
          [self layoutSubviews];
         }
   return self;
  }
  </code></pre>
  
  <p>Is it normal that the cell is being initialized more than once? I'm assuming that it will cause some memory leak. </p>