I have a custom UITableView
cell set up in my UITableView
like this:
- (UITableViewCell *)tableView:(UITableView *)tableView cellFo
I could reproduce your crash. Implementing the following method within the TableViewCell subclass
- (void)prepareForReuse
{
[super prepareForReuse];
[descriptionLabel setDataDetectorTypes: UIDataDetectorTypeNone];
}
and add following call within - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
before setting the text:
[descriptionLabel setDataDetectorTypes: UIDataDetectorTypeLink];
worked for me. Maybe it cancels ongoing drawing inside the textview and is avoiding the crash that way.
edit: Calling [descriptionLabel setDataDetectorTypes: UIDataDetectorTypeNone];
and [descriptionLabel setDataDetectorTypes: UIDataDetectorTypeLink];
just before setting the text also seems to fix the crash