diff options
author | Satbir Tanda <satbirtanda@gmail.com> | 2019-07-31 13:51:41 -0700 |
---|---|---|
committer | Satbir Tanda <satbirtanda@gmail.com> | 2019-07-31 13:51:41 -0700 |
commit | ce10b67322e75ad31c84fda4661a77d657387657 (patch) | |
tree | d45518c8a73bd6280b1e219080361365ec40a9f2 | |
parent | e8aac24d9aad63e5f0fcbf60b810572d01a0f9ab (diff) | |
download | sdl_ios-ce10b67322e75ad31c84fda4661a77d657387657.tar.gz |
Update SDLLockScreenViewController.m
Set gesture to nil after its removed
-rw-r--r-- | SmartDeviceLink/SDLLockScreenViewController.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLLockScreenViewController.m b/SmartDeviceLink/SDLLockScreenViewController.m index afda3b4d4..9c5a14c99 100644 --- a/SmartDeviceLink/SDLLockScreenViewController.m +++ b/SmartDeviceLink/SDLLockScreenViewController.m @@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN @property (weak, nonatomic) IBOutlet UIImageView *arrowUpImageView; @property (weak, nonatomic) IBOutlet UIImageView *arrowDownImageView; @property (strong, nonatomic) SwipeGestureCallbackBlock dismissGestureCallback; -@property (strong, nonatomic) UISwipeGestureRecognizer *swipeGesture; +@property (strong, nonatomic, nullable) UISwipeGestureRecognizer *swipeGesture; @end @@ -90,6 +90,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)removeDismissGesture { [self.view removeGestureRecognizer:self.swipeGesture]; + self.swipeGesture = nil; } - (void)sdl_didSwipeToDismiss:(UISwipeGestureRecognizer *)gesture { |