Overridden to disable editing when it is unsafe to make changes to a document.
- iOS 5.0+
Subclasses should override this method to prevent the user from editing the document when it is unsafe to do so, such as during a save-and-close or revert operation. When editing is safe again, UIKit class calls
enable. The default implementation of this method does nothing.