rotateLeft()

Description

Rotates the document in the editor by 90 degrees counter-clockwise.

Please note that this function is built-in behind the Rotate Left tool item.

Syntax

- (void) rotateLeft

Parameters

None

Return value

void

Example


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

    [self.dcsView.documentEditorView rotateLeft];
}

@end

See Also

rotateRight()

Is this page helpful?

Leave a Reply

Your email address will not be published.