save()

Description

Saves the changes made to the document.

Syntax

func save()

Parameters

None

Return value

Void

Remarks

The edited document will overwrite the original document.

If the object that the current document corresponds to is deleted, the save operation will fail and the exception DcsObjectNotExistException will be thrown.

See Also

discard()

Example

class ViewController: UIViewController{
    var dcsView:DcsView!
    override func viewDidLoad() {
        super.viewDidLoad()
        dcsView = DcsView(frame: CGRect(x:0,y:0,width:self.view.frame.size.width,height:self.view.frame.size.height))
        dcsView.currentView = DVE_EDITORVIEW
        dcsView.documentEditorView.save()
    }
}
Is this page helpful?