From c374ee2ce01c2a00766f7fc03c422cd3c7972545 Mon Sep 17 00:00:00 2001 From: juraskrlec Date: Mon, 11 Sep 2017 11:10:00 +0200 Subject: [PATCH] Removed viewDidUnload and delegate from CameraOverlayViewController for pdf417-sample --- .../Simple/PPCameraOverlayViewController.m | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Samples/pdf417-sample/pdf417-sample/Camera Overlays/Simple/PPCameraOverlayViewController.m b/Samples/pdf417-sample/pdf417-sample/Camera Overlays/Simple/PPCameraOverlayViewController.m index 1aa0e076..46b9ac83 100644 --- a/Samples/pdf417-sample/pdf417-sample/Camera Overlays/Simple/PPCameraOverlayViewController.m +++ b/Samples/pdf417-sample/pdf417-sample/Camera Overlays/Simple/PPCameraOverlayViewController.m @@ -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]; @@ -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;