appendDocument()

Description

Appends documents to DcsBuffer.

Syntax

func appendDocument(document:DcsDocument)

Parameters

document:DcsDocument The document to be added into the buffer.

Return value

Void

Exceptions

Circumstance Exception thrown
Document is nil. DcsValueNotValidException
Document is not DcsDocument. DcsTypeNotValidException

 

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))
        view.addSubview(dcsView)
        let dcsDocument = DcsDocument.init(UIImage(named: "xxx"))
        dcsView.buffer.append(dcsDocument)
    }
}
Is this page helpful?

Leave a Reply

Your email address will not be published.