Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Classes/MMParallaxCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,26 @@

@property (nonatomic, assign) CGFloat parallaxRatio; //ratio of cell height, should between [1.0f, 2.0f], default is 1.5f;


/**

Use this method for dealloc visibles cells
On your ViewController on dealloc call this method.

e.g.


- (void)dealloc {
for (MMParallaxCell *cell in self.tableView.visibleCells) {
[cell safeRemoveObserver];
}
}


It will be fix the retain cycle, deallocing all cells in memory


*/
- (void)safeRemoveObserver;

@end
1 change: 1 addition & 0 deletions Classes/MMParallaxCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus

- (void)awakeFromNib
{
[super awakeFromNib];
[self setup];
}

Expand Down