title: iOS 7 UITextView link detection crash in UITableView
body: <p>I have a custom <code>UITableView</code> cell set up in my <code>UITableView</code> like this:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      static NSString *identifier = @"CELL_IDENTIFIER";
  
      SGCustomCell *cell = (SGCustomCell *)[tableView dequeueReusableCellWithIdentifier:identifier];
      if (!cell) cell = [[SGCustomCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
  
      cell = [self customizedCell:cell withPost:[postsArray objectAtIndex:indexPath.row]];
  
      return cell;
  }
  </code></pre>
  
  <p>I set up the cell like this (specifically setting the <code>UITextView.text</code> to <code>nil</code> - as noted in <a href="https://stackoverflow.com/a/19128056/1313939">this answer</a>):</p>
  
  <pre><code>descriptionLabel.text = nil;
  descriptionLabel.text = post.postDescription;
  
  descriptionLabel.frame = CGRectMake(leftMargin - 4, currentTitleLabel.frame.origin.y + currentTitleLabel.frame.size.height + 10, self.frame.size.width - topMargin * 3, 100);
  [descriptionLabel sizeToFit];
  </code></pre>
  
  <p>The cells are 100% reusable and <code>UITextView</code> is inited like this (as you see, nothing special):</p>
  
  <pre><code>descriptionLabel = [[UITextView alloc] init];
  descriptionLabel.font = [UIFont fontWithName:@"HelveticaNeue" size:11];
  descriptionLabel.editable = NO;
  descriptionLabel.scrollEnabled = NO;
  descriptionLabel.dataDetectorTypes = UIDataDetectorTypeLink;
  descriptionLabel.frame = CGRectMake(leftMargin, currentTitleLabel.frame.origin.y + currentTitleLabel.frame.size.height + 10, self.frame.size.width - topMargin * 3, 10);
  [self addSubview:descriptionLabel];
  </code></pre>
  
  <p>But when the table has around 50 cells and when I <strong>scroll it fast</strong> I get the following crash:</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSRangeException', reason: 'NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds'
  </code></pre>
  
  <p>Which is absolutely ridiculous - I comment out this line - <code>descriptionLabel.dataDetectorTypes = UIDataDetectorTypeLink;</code> and the app stops crashing! I've spent hours trying to figure out what the problem was and now I simply get this.</p>
  
  <p>Tested on iOS 7.0.3</p>