Skip to content

Commit

Permalink
Fix cocoa pod warning about not explicitly retaining self.
Browse files Browse the repository at this point in the history
Fix [super viewDidLoad] not being called on PopoverViewController
  • Loading branch information
Jeff Ward committed Mar 12, 2018
1 parent d32fefa commit 7c3e68c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Core/SnapShotDebuggingWindow/HYPPopoverViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ -(instancetype)initWithViewController:(UIViewController *)controller

-(void)viewDidLoad
{
[super viewDidLoad];

self.view.clipsToBounds = true;
self.containerView = [UIView new];

Expand Down
2 changes: 1 addition & 1 deletion Core/SnapShotDebuggingWindow/HYPSnapshotViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7c3e68c

Please # to comment.