From 7c3e68c55922772b1f64af2f66cc6307391c2a7f Mon Sep 17 00:00:00 2001 From: Jeff Ward Date: Mon, 12 Mar 2018 11:52:33 -0400 Subject: [PATCH] Fix cocoa pod warning about not explicitly retaining self. Fix [super viewDidLoad] not being called on PopoverViewController --- Core/SnapShotDebuggingWindow/HYPPopoverViewController.m | 2 ++ Core/SnapShotDebuggingWindow/HYPSnapshotViewController.m | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/SnapShotDebuggingWindow/HYPPopoverViewController.m b/Core/SnapShotDebuggingWindow/HYPPopoverViewController.m index 3234884..e5e77d6 100644 --- a/Core/SnapShotDebuggingWindow/HYPPopoverViewController.m +++ b/Core/SnapShotDebuggingWindow/HYPPopoverViewController.m @@ -39,6 +39,8 @@ -(instancetype)initWithViewController:(UIViewController *)controller -(void)viewDidLoad { + [super viewDidLoad]; + self.view.clipsToBounds = true; self.containerView = [UIView new]; diff --git a/Core/SnapShotDebuggingWindow/HYPSnapshotViewController.m b/Core/SnapShotDebuggingWindow/HYPSnapshotViewController.m index 3576a0d..97d1a62 100644 --- a/Core/SnapShotDebuggingWindow/HYPSnapshotViewController.m +++ b/Core/SnapShotDebuggingWindow/HYPSnapshotViewController.m @@ -271,7 +271,7 @@ -(void)deactivate } completion:^(BOOL finished) { self.scrollViewContainer.userInteractionEnabled = true; - [self.snapshotContainerView removeGestureRecognizer:_dismissDrawerTapGesture]; + [self.snapshotContainerView removeGestureRecognizer:self->_dismissDrawerTapGesture]; [self.snapshotContainerView removeGestureRecognizer:self.deactivateDrawerPanGesture]; if (self.scrollViewContainer.overlayModule == nil) {