libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSTextContentStorage: Inconsistent element cache state. Elements for range {0, 36} are not cached while trying to insert'
terminating with uncaught exception of type NSException
The app crashes with the above warning.
I'm extracting the attributed string from the html, and then assigning it to
This worked for me!!
The reason why I did it:
A text storage object notifies its layout managers of changes to its characters or attributes, which lets the layout managers redisplay the text as needed. You can access a text storage object from any thread of your app, but your app must guarantee access from only one thread at a time.
Is it safe to use it like this? If not, then I will try your solution.