delete()

Description

Deletes the images or documents in the specified index.

Syntax

func delete(index: Int)

Parameters

index:Int The index of the image to be deleted.

Return value

Void

Remarks

If index >= count or index < 0, it will throw DcsValueOutOfRangeException.

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)
        dcsView.buffer.delete(1)
    }
}
Is this page helpful?

Leave a Reply

Your email address will not be published.