When tapping on the links, the delegate does not get called. When long pressing on the links, the app crashes with this error.
*\ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSConcreteMutableAttributedString addAttribute:value:range:: nil value'
Now if I move the exact code out of the UICollectionView and into a normal UIView, everything works perfectly. Can anyone tell me what is going on here? Is NIAttributedLabel not compatible with UICollectionViews?
I have a NIAttributedLabel setup in a UICollectionViewCell like so: (with the delegate methods in the right place)
When tapping on the links, the delegate does not get called. When long pressing on the links, the app crashes with this error.
*\ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSConcreteMutableAttributedString addAttribute:value:range:: nil value'
Now if I move the exact code out of the UICollectionView and into a normal UIView, everything works perfectly. Can anyone tell me what is going on here? Is NIAttributedLabel not compatible with UICollectionViews?