Skip to content
This repository was archived by the owner on Sep 11, 2022. It is now read-only.

Use of weak self to avoid strongly captured over-retained self in blocks #185

Merged
merged 1 commit into from
Dec 30, 2013
Merged

Use of weak self to avoid strongly captured over-retained self in blocks #185

merged 1 commit into from
Dec 30, 2013

Conversation

shawnwall
Copy link
Contributor

While using your great lib in a project, we ran into a scenario where we had multiple storyboards - one for login, and then one for the main project. The main project had a PKRevealController as it's root VC. If we tore down the VC stack by replacing the window's rootViewController, the PKRevealController's entire hierarchy was retained. After much digging, we found out it was due to the strongly captured self in the animation blocks occurring.

pkluz pushed a commit that referenced this pull request Dec 30, 2013
Use of weak self to avoid strongly captured over-retained self in blocks
@pkluz pkluz merged commit 95dffaf into pkluz:master Dec 30, 2013
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.

2 participants