Skip to content

Commit

Permalink
Removed viewDidUnload and delegate from CameraOverlayViewController f…
Browse files Browse the repository at this point in the history
…or pdf417-sample
  • Loading branch information
juraskrlec committed Sep 11, 2017
1 parent ba7d772 commit c374ee2
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ - (void)viewDidLoad
// Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload {
[[self drawingLayer] setDelegate:nil];
[self setDrawingLayer:nil];
[self setCloseButton:nil];
[self setTorchButton:nil];
[super viewDidUnload];
}

- (void)dealloc {
[[self drawingLayer] setDelegate:nil];
[self setDrawingLayer:nil];
Expand Down Expand Up @@ -210,7 +202,6 @@ - (void)initDrawingLayerWithBounds:(CGRect)bounds {
drawingLayer.strokeColor = [color CGColor];
drawingLayer.fillColor = [[UIColor clearColor] CGColor];
drawingLayer.opacity = 0.9f;
drawingLayer.delegate = self;
drawingLayer.lineWidth = 4.0f;
drawingLayer.masksToBounds = YES;

Expand Down

0 comments on commit c374ee2

Please sign in to comment.