onOkTapped

Description

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

Syntax

- (void) onOkTapped: (id) sender

Parameters

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

Return value

void

Example

Example


@interface ViewController ()<DcsUIImageEditorViewDelegate>{
    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.imageEditorView.delegate = self; 
    [self.view addSubview:dcsView];
}

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

@end