I created my own subclass NSTextStorage , which processes the text the way I need it to be processed.
To use this in a text view, I need to create an NSTextContainer and NSLayoutManager , and then assign a container to a UITextView .
This works without problems if done programmatically.
Is there a way to change the text container and layout manager after the text view has been loaded from a Storyboard or XIB file?
source share