diff --git a/LGPlusButtonsView/LGPlusButtonsView.m b/LGPlusButtonsView/LGPlusButtonsView.m index 2f76fc2..5fb08e9 100644 --- a/LGPlusButtonsView/LGPlusButtonsView.m +++ b/LGPlusButtonsView/LGPlusButtonsView.m @@ -143,7 +143,7 @@ - (instancetype)initWithNumberOfButtons:(NSUInteger)numberOfButtons _contentView = [WrapperView new]; _contentView.backgroundColor = [UIColor clearColor]; - _contentView.userInteractionEnabled = YES; + _contentView.userInteractionEnabled = NO; [self addSubview:_contentView]; _buttonsContentView = [WrapperView new]; @@ -1423,6 +1423,7 @@ - (void)hideAnimated:(BOOL)animated completionHandler:(void(^)())completionHandl - (void)showButtonsAnimated:(BOOL)animated completionHandler:(void(^)())completionHandler { + self.contentView.userInteractionEnabled = YES; if (self.isFirstButtonIsPlusButton) { LGPlusButton *plusButton = _buttonsArray[0]; @@ -1486,6 +1487,7 @@ - (void)showButtonsAnimated:(BOOL)animated completionHandler:(void(^)())completi - (void)hideButtonsAnimated:(BOOL)animated completionHandler:(void(^)())completionHandler { + self.contentView.userInteractionEnabled = NO; if (self.isFirstButtonIsPlusButton) { LGPlusButton *plusButton = _buttonsArray[0];