discard()

Description

Discards the changes made to the image.

Syntax

- (void) discard

Parameters

None

Return value

void

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];

    [self.dcsView.imageEditorView discard];
}

@end

See Also

save()