appendDocument()

Description

Appends documents to DcsBuffer.

Syntax

- (void)appendDocument: (DcsDocument *) document

Parameters

document:DcsDocument The document to be added into the buffer.

Return value

Void

Exceptions

Circumstance Exception thrown
Document is nil. DcsValueNotValidException
Document is not DcsDocument. DcsTypeNotValidException

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


    UIImage *UIImg2 = [UIImage imageNamed:@"barcode"];
    DcsDocument *DcsDoc = [[DcsDocument alloc]init:UIImg2];
    [self.dcsView.buffer appendDocument:DcsDoc];
}

@end