currentView

Description

Gets or sets the current view type. The default is DVE_IMAGEGALLERYVIEW.

Data type

DcsViewEnum

Syntax

(nonatamic, assign) DcsViewEnum currentView

Remarks

Enumerated Value View Type
DVE_VIDEOVIEW Video view
DVE_IMAGEGALLERYVIEW Image gallery view
DVE_EDITORVIEW Edit view. When the data you operate with is DcsDocument, it displays the document editor. If it's DcsImage, then it displays the image editor.

If the value you set is not among the above, the exception DcsValueOutOfRangeException will be thrown.

Example


@interface ViewController ()<DcsUIVideoViewDelegate>{
    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.currentView = DVE_VIDEOVIEW;
}

@end
Is this page helpful?

Leave a Reply

Your email address will not be published.