In my app I have a class inherited from UITextView
and I need to create and destroy many instances of this view on screen. So my question - is there a way to save (before destroy) and then restore (after create) undo/redo stacks of each instance?
// After creation should be restoring like this.
// (This doesn't work certainly as undoManager is a readonly property)
self.undoManager = storedUndoManager;