onCancelTapped

Description

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

Syntax

- (void) onCancelTapped: (id) sender

Parameters

ID sender: The current DcsUIDocumentEditorView object that triggers the event.

Return value

void

Example


@interface ViewController ()<DcsUIDocumentEditorViewDelegate>{
    DcsView *dcsView;
}
@end
 
@implementation ViewController
 
- (void)viewDidLoad {
    [super viewDidLoad];
     
    dcsView = [[DcsView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
 
    dcsView.documentEditorView.delegate = self; 
    [self.view addSubview:dcsView];
}

- (void) onCancelTapped:(id)sender{
    NSLog(@"onCancelTapped fired.");
    NSLog(@"sender: %@",sender);
}

@end

Is this page helpful?

Leave a Reply

Your email address will not be published.