onCancelTapped

Description

The event is fired when the cancel tool item is clicked.

Syntax

delegate func onCancelTapped(sender: Any)

Parameters

sender:Any The current DcsUIImageEditorView object that triggers the event.

Return value

Void

Example

class ViewController: UIViewController,DcsUIImageEditorViewDelegate{
    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.imageEditorView.delegate = self
        view.addSubview(dcsView)
    }
    func onOkTapped(_ sender: Any!){
        print("Ok Tapped")
    }
    func onCancelTapped(_ sender: Any!){
        print("Cancel Tapped")
    }
}
Is this page helpful?

Leave a Reply

Your email address will not be published.