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) {