-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #102—Avoid retain cycle between SDCAlertView and SDCAlertController
The shouldDismissBlock and didDismissBlock of SDCAlertView had a reference to the SDCAlertController instance that was used to instantiate the legacy alert view. Since the alert controller also had a strong reference to the legacy alert view, this caused a retain cycle. The fix is to remove the reference to the alert controller in the aforementioned blocks and copy any values needed from the controller and use those in the blocks instead.
- Loading branch information
1 parent
0681097
commit 7ed3dbb
Showing
2 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters