Created
October 29, 2014 13:24
-
-
Save dodikk/b41af6506d0e08ed1523 to your computer and use it in GitHub Desktop.
Как убить объект в Objective-C
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
// избавляемся от свидетелей | |
while (object.retainCount) { | |
[object release]; | |
} | |
// 146% убиваем объект. Мамом клянусь - да! | |
[object release]; | |
// контрольный в голову | |
[object dealloc]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment