delete()

Description

Deletes the image or document with the specified index.

Syntax

- (void) delete: (NSInteger) index

Parameters

index:NSInteger The index of the image to be deleted.

Return value

Void

Exceptions

Circumstance Exception thrown
index >= count or index < 0 DcsValueOutOfRangeException

Example


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

    [self.dcsView.buffer delete:0];
}

@end

Is this page helpful?

Leave a Reply

Your email address will not be published.