Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Fix for Retain Cycle#5

Open
rodrigosoldi wants to merge 3 commits into
adad184:masterfrom
rodrigosoldi:master
Open

Fix for Retain Cycle#5
rodrigosoldi wants to merge 3 commits into
adad184:masterfrom
rodrigosoldi:master

Conversation

@rodrigosoldi

@rodrigosoldi rodrigosoldi commented Aug 9, 2017

Copy link
Copy Markdown

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

 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant