13

I've made a custom subclass of NSTextStorage, which processes text as I need it to be processed.

To use this on a text view I need to create a NSTextContainer and a NSLayoutManager, and then assign the container to the UITextView.

This works without any problems if done programatically.

Is there a way how to change the text container and layout manager after the text view was loaded from a Storyboard or XIB file?

Dominik Hadl
  • 3,609
  • 3
  • 24
  • 58

0 Answers0