There is an exception being thrown when a user scrolls through my UITableView
too fast or taps the status bar to jump to the top of the table. I am only seeing
The bug is not in the code you posted. The bug happens when a UITextView
is reused while its links are still being generated, which is done asynchronously.
See these similar Stack Overflow questions:
Many users have reported that setting the text view's text property to nil
in the cell's prepareForReuse
method resolves the issue. Alternatively you could use a library like TTTAttributedLabel
instead of a text view.
The fact that it only appears on an iPhone 5C is probably a red herring. I bet this device is still running iOS 7, and the other devices have been updated to a newer version of iOS.
On a side note, there may be edge cases that your regex doesn't cover. I would delete your twitter parsing method and replace it with the official twitter-text-objc library.