From 265d7b160e84128495c3097495f6333cb4e0420c Mon Sep 17 00:00:00 2001 From: Antol Date: Sat, 17 Oct 2015 02:38:57 +0300 Subject: [PATCH] Property for bouncing --- SWTableViewCell/PodFiles/SWTableViewCell.h | 2 ++ SWTableViewCell/PodFiles/SWTableViewCell.m | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/SWTableViewCell/PodFiles/SWTableViewCell.h b/SWTableViewCell/PodFiles/SWTableViewCell.h index 10d9fab..d3bfb78 100644 --- a/SWTableViewCell/PodFiles/SWTableViewCell.h +++ b/SWTableViewCell/PodFiles/SWTableViewCell.h @@ -40,6 +40,8 @@ typedef NS_ENUM(NSInteger, SWCellState) @property (nonatomic, copy) NSArray *leftUtilityButtons; @property (nonatomic, copy) NSArray *rightUtilityButtons; +@property (nonatomic, assign) BOOL bounces; + @property (nonatomic, weak) id delegate; - (void)setRightUtilityButtons:(NSArray *)rightUtilityButtons WithButtonWidth:(CGFloat) width; diff --git a/SWTableViewCell/PodFiles/SWTableViewCell.m b/SWTableViewCell/PodFiles/SWTableViewCell.m index 3daceac..b91a5f4 100644 --- a/SWTableViewCell/PodFiles/SWTableViewCell.m +++ b/SWTableViewCell/PodFiles/SWTableViewCell.m @@ -283,6 +283,16 @@ - (void)setRightUtilityButtons:(NSArray *)rightUtilityButtons WithButtonWidth:(C [self layoutIfNeeded]; } +- (BOOL)bounces +{ + return self.cellScrollView.bounces; +} + +- (void)setBounces:(BOOL)bounces +{ + self.cellScrollView.bounces = bounces; +} + #pragma mark - UITableViewCell overrides - (void)didMoveToSuperview