Skip to content

Commit

Permalink
Property for bouncing
Browse files Browse the repository at this point in the history
  • Loading branch information
Antol committed Oct 16, 2015
1 parent a8a20f8 commit 265d7b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SWTableViewCell/PodFiles/SWTableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <SWTableViewCellDelegate> delegate;

- (void)setRightUtilityButtons:(NSArray *)rightUtilityButtons WithButtonWidth:(CGFloat) width;
Expand Down
10 changes: 10 additions & 0 deletions SWTableViewCell/PodFiles/SWTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 265d7b1

Please sign in to comment.