Skip to content

Define the viewController as weak in WTRQuestionView.#111

Open
reggian wants to merge 1 commit into
Wootric:masterfrom
reggian:ra-fix-retain-cycle
Open

Define the viewController as weak in WTRQuestionView.#111
reggian wants to merge 1 commit into
Wootric:masterfrom
reggian:ra-fix-retain-cycle

Conversation

@reggian

@reggian reggian commented Oct 14, 2022

Copy link
Copy Markdown

The WTRSurveyViewController has a strong reference to the WTRQuestionView *questionView. Since the controller is the owner of the view, the back reference from the view to the controller should be weak to break the retain cycle.

The `WTRSurveyViewController` has a strong reference to the `WTRQuestionView *questionView`.
Since the controller is the owner of the view, the back reference from the view to the controller should be weak to break the retain cycle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant