Created
October 7, 2018 16:59
-
-
Save yunustek/f8457b0cfb6c49df0c1b450e1c198a8c to your computer and use it in GitHub Desktop.
View Controller Canlılığını Kontrol Etme
This file contains hidden or 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
DispatchQueue.main.async { [weak self] in | |
guard let self = self else { | |
return | |
} | |
// Do stuff with self, knowing it is held strongly after the guard statement | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment