SlackTextViewController icon indicating copy to clipboard operation
SlackTextViewController copied to clipboard

How can I use a custom textContainer in SLKTextViewController

Open DarkAngel7 opened this issue 10 years ago • 1 comments

I have a custom NSTextStorage so that I must use a textContainer to init the textView, but I don't know how to do this.

DarkAngel7 avatar Jun 23 '16 05:06 DarkAngel7

You can subclass SLKTextView and initialize it with your text storage/manager/container, internally. You can then register this custom textView when configurating your SLKTextViewController subclass using the registerClassForTextView: method. There is an example of this on the sample project.

dzenbot avatar Jun 23 '16 17:06 dzenbot