onOkTapped

Description

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

Syntax

- (void) onOkTapped: (id) sender
exception:(DcsException *)exception

Parameters

ID sender: The current DcsUIDocumentEditorView object that triggers the event.
(DcsException *) exception: The exception thrown when the event is triggered.

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) onOkTapped:(id)sender exception:(DcsException *)exception{
    NSLog(@"onOkTapped fired");
    NSLog(@"sender: %@",sender);
}

@end

Is this page helpful?

Leave a Reply

Your email address will not be published.