Overview

This class contains a DcsUIVideoView object, a DcsImageGalleryView object, a DcsUIDocumentEditorView object, and a DcsUIImageEditorView object, etc., which makes it have capabilities of the video display, image and document capture, display, edit, save, upload and download.

Inherits UIView.

DcsView is a manager class. You don't need to create view objects for videoView, imageGalleryView, documentEditorView and imageEditorView. You can use them after initializing DcsView object.


@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.videoView.nextViewAfterCancel = DEV_IMAGEGALLERYVIEW;
    //self.dcsView.documentEditorView.nextViewAfterOK = DVE_IMAGEGALLERYVIEW;
    //self.dcsView.imageEditorView.nextViewAfterOK = DVE_IMAGEGALLERYVIEW;
    //[self.dcsView.imageGalleryView enterManualSortMode];
    //self.dcsView.buffer.currentIndex;
    /* 
    [self.dcsView.io loadFileAsync:@"<your saving path>" mode:DME_IMAGE
    successCallback:^(id source) {
        NSLog(@"Success");
    } failureCallback:^(id source, DcsException *exp) {
        NSLog(@"%@%@",exp.name,exp.reason);
    } progressCallback:^BOOL(NSInteger progress) {
        return YES;
    }];
    }
   */
 
@end
Is this page helpful?